Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set up virtual host ? name based, ip based ?

Status
Not open for further replies.

mingx98

Technical User
Mar 16, 2000
78
0
0
CA
Thanks
 
IP based virtual hosting is not as popular these days becuase you must have multiple IP's (and that is a waste of IP addressing. It is pretty simple to implement though:

<VirtualHost 200.182.283.12>
ServerName DocumentRoot /httpd/html/mydomain
</VirtualHost>

<VirtualHost 200.182.283.13>
Servername DocumentRoot /httpd/html/myotherdomain
</VirtualHost>

For name based virtualhosting, please refer to my FAQ in the apache forum about name-based virtualhosts behind firewalls. it is quite easy to implement namebased virtualhosting, and it saves IP addressing!


Hope this helps!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top