Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Question:Configuring an "IP based" virtual host:


One may assign multiple IP addresse to a single network interface. See the YoLinux networking tutorial: Network Aliasing. Each IP address may then be it's own virtual server and individual domain. The downside of the "IP based" virtual host method is that you have to possess multiple/extra IP addresses. This usually costs more. The standard name based virtual hosting method above is more popular for this reason.

   
NameVirtualHost *              - Indicates all IP addresses

*>
   ServerAdmin user0@default-domain.com
   DocumentRoot /home/user0/public_html


XXX.XXX.XXX.101>
   ServerAdmin user1@domain-1.com
   DocumentRoot /home/user1/public_html


XXX.XXX.XXX.102>
   ServerAdmin user1@domain-2.com
   DocumentRoot /home/user2/public_html

The default block will be used as the default for all IP addresses not specified explicitly. This default IP (*) may not work for https URL's. 


asked Sep 13, 2013 in LINUX by anonymous
edited Sep 12, 2013
0 votes
23 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...