CONFIGURING THE WEB SERVER

  1. Install Apache
  • enable wireless connect to connect to the internet
  • panel network icon – right click
  • select to enable wireless
  • use yum: yum –y install httpd mod_ssl
  • disable the wireless connection and reboot

2. Modify the /etc/httpd/conf/httpd.conf

  • find: KeepAlive off
  • replace with: KeepAlive on
  • find: #ServerName …
  • add below the comment: ServerNameyour_domain.edu:80

3. Start Apache Web Sever (or restart)

  • /usr/sbin/apachectlrestart
  • another command but the first is preferred: /etc/init.d/httpd restart

4. Set Apache Web Server to start at boot up

  • chkconfighttpd on

5. Disable Security-Enhanced Linux

  • Edit /etc/selinux/config
  • replace: SELINUX = enforcing
  • with: SELINUX = disabled
  • reboot the computer

6. Create and publish webpage and image

  • Using the webpage.txt on the Course Outline page
  • Edit the items for your specific domain and ip address
  • Save webpage.txt as webpage.html
  • save an image named me.jpg
  • copy the webpage and image to /var/www/html/

7. Test Apache Web service

  • open a web browser
  • load URL: your_domain/webpage.html
  • load URL: your_IP_address/webpage.html

8. Install Telnet

  • enable wireless connect to connect to the internet
  • panel network icon – right click
  • select to enable wireless
  • use yum: yum –y install telnet telnet-server
  • disable the wireless connection and reboot

9. Modify /etc/xinet.d/telnet

  • find: disable = yes
  • replace with: disable = no

10. Start Telnet service

  • service xinetd start

11. Set Telnet service to start at boot up

  • chkconfig telnet on
  • chkconfigxinetd on

12. Test Telnet

  • open a terminal window
  • telnet localhost
  • login as one of the users you created

13. Complete the exercises assigned (some parts you have already done)

Project 6-4 Understanding and completing the Apache configuration

Project 6-6 Configuring user webpages

Project 6-7 Configuring virtual hosts

-ServerName entries for all three hosts (root, research, support)

-NameVirtualHost entries for both IP addresses (root, research)

-VirtualHost tags for all three hosts (root,research, support)

14. Assessments-

  • Test your webserver:

terminal: ifconfig (should have two connections for each IP address)

web browser: load webpage for your_domain/webpage.html

web browser: load webpage for your_ip/webpage.html

web browser: load webpage for your_domain/~lastname1/webpage.html

web browser: load webpage for your_domain/webpage.html

web browser: load webpage for research.your_domain/webpage.html

  • Test your DNS & webserver from another computer (zimmer1):

web browser: load webpage for your_domain/webpage.html

web browser: load webpage for your_ip/webpage.html

web browser: load webpage for your_domain/~lastname1/webpage.html

web browser: load webpage for your_domain/webpage.html

web browser: load webpage for research.your_domain/webpage.html

Web Server diagram of websites

9/19/2018Page 1 of 3