nerdexam
Red_Hat

RH302 · Question #111

Configure the Apache webserver for station7.example.com (associated IP is your host IP address) by downloading the index.html from ftp://server1.example.com.

1. vi /etc/httpd/conf/httpd.conf <VirtualHost 192.168.0.?> ServerName station7.example.com DocumentRoot /var/www/station7 DirectoryIndex index.html ServerAdmin [email protected] </VirtualHost> 2. Create the directory and index page on specified path. (Index page can…

Service management

Question

Configure the Apache webserver for station7.example.com (associated IP is your host IP address) by downloading the index.html from ftp://server1.example.com.

Explanation

  1. vi /etc/httpd/conf/httpd.conf <VirtualHost 192.168.0.?> ServerName station7.example.com DocumentRoot /var/www/station7 DirectoryIndex index.html ServerAdmin [email protected] </VirtualHost>
  2. Create the directory and index page on specified path. (Index page can download from ftp://server1.example.com at exam time) Check the SELinux context of index page , should like this: -rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html If SELinux Context is mismatched, use the restorecon -R /var/command
  3. service httpd start|restart
  4. chkconfig httpd on

Topics

#Apache#virtual host#FTP#web server

Community Discussion

No community discussion yet for this question.

Full RH302 Practice