Hi, I've just installed Apache and have gotten almost everything to work just fine. I want to host multiple web sites so I need to get Virtual Hosting to work. I don't know what is wrong!
Right now, I have two <VirtualHost> blocks in the httpd.conf file. Domain1.com and Domain2.com. I get the same web page (the index of domain1.com) no matter which domain I enter.
Here is the set up of my VirtualHost section:
NameVirtualHost 12.34.56.78
<VirtualHost 12.34.56.78>
ServerName domain1.com
DocumentRoot /usr/ ServerAdmin webmaster@domain1.com
</VirtualHost>
<VirtualHost 12.34.56.78>
ServerName domain2.com
DocumentRoot /usr/ ServerAdmin webmaster@domain2.com
</VirtualHost>
That's it... Canonical names have been turned off as well.
Is there anything that I'm doing incorrectly or that I'm forgetting to do? Thanx.
Right now, I have two <VirtualHost> blocks in the httpd.conf file. Domain1.com and Domain2.com. I get the same web page (the index of domain1.com) no matter which domain I enter.
Here is the set up of my VirtualHost section:
NameVirtualHost 12.34.56.78
<VirtualHost 12.34.56.78>
ServerName domain1.com
DocumentRoot /usr/ ServerAdmin webmaster@domain1.com
</VirtualHost>
<VirtualHost 12.34.56.78>
ServerName domain2.com
DocumentRoot /usr/ ServerAdmin webmaster@domain2.com
</VirtualHost>
That's it... Canonical names have been turned off as well.
Is there anything that I'm doing incorrectly or that I'm forgetting to do? Thanx.