Red_Hat
RH302 · Question #180
139: Configure the Apache webserver for station?.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 station?.example.com DocumentRoot /var/www/station? DirectoryIndex index.html ServerAdmin [email protected] </VirtualHost> 2. Create the directory and index page on specified path. (Index page can…
Service management
Question
139: Configure the Apache webserver for station?.example.com (associated IP is your host IP address) by downloading the index.html from ftp://server1.example.com.
Explanation
- vi /etc/httpd/conf/httpd.conf <VirtualHost 192.168.0.?> ServerName station?.example.com DocumentRoot /var/www/station? DirectoryIndex index.html ServerAdmin [email protected] </VirtualHost>
- Create the directory and index page on specified path. (Index page can download from ftp://server1.example.com at exam time)
- service httpd start | restart
- chkconfig httpd on
Topics
#Apache#virtual host#httpd#web server
Community Discussion
No community discussion yet for this question.