Day 21 1 Webserver2 5
Day 21 1 Webserver2 5
conf
HTTP Server
Add Addthe thebelow belowlines lines <VirtualHost 192.168.0.252:80> <VirtualHost 192.168.0.252:80> ServerAdmin ServerAdmin [email protected] [email protected] DocumentRoot DocumentRoot /var/www/html /var/www/html ServerName ServerName www.google.com www.google.com DirectoryIndex DirectoryIndex google.html google.html </VirtualHost> </VirtualHost>
To Torestart restartthe theHTTP HTTPservices services [root@comp1 ~]# service httpd restart [root@comp1 ~]# service httpd restart
Open Openconfiguration configurationfor forediting editing [root@comp1 [root@comp1~]# ~]#vi vi /etc/resolv.conf /etc/resolv.conf
Accessing AccessingWebserver Webserver Open Mozilla or Fire Fox browser. Open Mozilla or Fire Fox browser. In Inthe theaddress addressbox boxtype typehttp://www.google.com http://www.google.com or or http://192.168.0.252 http://192.168.0.252
Add Addthe theDNS DNSserver serverIP IPaddress addressin infile file/etc/resolv.conf /etc/resolv.conf nameserver 192.168.0.253 nameserver 192.168.0.253