You are on page 1of 1

Virtual Hosting Port based Configuration

Configuring HTTP Server

DNS DNS Server Server 192.168.0.253 192.168.0.253 server server Web Web Server Server 192.168.0.254 192.168.0.254

Install Installthe thepackage packageby byusing usingone oneof ofthe theinstallation installationmethods methods [root@comp1 rpm-ivh -ivh--force --force--aid --aid ftp://192.168.0.250/pub/Server/http* ftp://192.168.0.250/pub/Server/http* [root@comp1~]# ~]#rpm

www.zoom.com www.zoom.com

Linux Linux Client Client 192.168.0.1 192.168.0.1 client1 client1 ZOOM.COM ZOOM.COM

Windows Windows Client Client 192.168.0.2 192.168.0.2

www.redhat.com www.redhat.com 5000 5000

Open Openconfiguration configurationfor forediting editing [root@comp1~]# [root@comp1~]#vi vi etc/httpd/conf/httpd.conf etc/httpd/conf/httpd.conf

client2 client2

/etc/httpd/conf/httpd.conf

HTTP Server

Add Addthe thebelow belowlines lines NameVirtualHost *:80 NameVirtualHost *:80 <VirtualHost <VirtualHost*:80> *:80> ServerAdmin ServerAdmin root@zoom.com root@zoom.com DocumentRoot DocumentRoot /var/www/html /var/www/html ServerName www.zoom.com ServerName www.zoom.com DirectoryIndex DirectoryIndex zoom.html zoom.html </VirtualHost> </VirtualHost> <VirtualHost <VirtualHost*:80> *:80> ServerAdmin ServerAdmin root@ibm.com root@ibm.com DocumentRoot DocumentRoot /var/www/html /var/www/html ServerName www.ibm.com ServerName www.ibm.com DirectoryIndex DirectoryIndex ibm.html ibm.html </VirtualHost> </VirtualHost>

To Torestart restartthe theHTTP HTTPservices services [root@comp1 [root@comp1~]# ~]#service servicehttpd httpdrestart restart

You might also like