Hi,<br>I am trying to set up apache2 to see more than one virtual host but don't find my error. Each time I try to see one of the three examples, Apache served me the first site I configured and can't find the others. I tried different ports and it didn't change anything. Your help would be welcome as I don't see what I can add or where to add something or do I need to delete something???<br>
I am using Ubuntu Desktop 7.10 and the 3 sites have been enabled sudo a2ensite <a href="http://example1.com">example1.com</a> , sudo /etc/init.d/apache2 restart for each one of them separately <br><br>This is the base configuration of my files, every different host will have the same thing except for server name, server alias, and root directory.<br>
VirtualHost *<br><VirtualHost * ><br> ServerName <a href="http://Example.org">Example.org</a><br> ServerAlias <a href="http://Example.org">Example.org</a> *.Example.org<br> ServerAdmin webmaster@localhost<br>
<br>I tried to add the following lines in /etc/apache2/http.conf<br>ServerName localhost<br>ServerName <a href="http://www.example1.com">www.example1.com</a><br>ServerName <a href="http://www.example2.com">www.example2.com</a><br>
ServerName <a href="http://www.Example.org">www.Example.org</a><br><br>and also add the following to /etc/hosts<br><a href="http://127.0.0.1">127.0.0.1</a> localhost<br><a href="http://127.0.1.1">127.0.1.1</a> galen-desktop<br>
publicIP(I wrote the number, not publicIP) <a href="http://example1.com">example1.com</a> *.example1.com<br>publicIP <a href="http://example2.com">example2.com</a> *.example2.com<br>
publicIP <a href="http://Example.org">Example.org</a> *.Example.org<br><br># The following lines are desirable for IPv6 capable hosts<br>::1 ip6-localhost ip6-loopback<br>
fe00::0 ip6-localnet<br>ff00::0 ip6-mcastprefix<br>ff02::1 ip6-allnodes<br>ff02::2 ip6-allrouters<br>ff02::3 ip6-allhosts<br>~ <br>
Apparently, nothing helps. The first site is a web page on internet, the others can be on private network or public, that doesn't really matter at the time. Just one more question, do I need to Buy a DNS if I need them on internet later? and for now do I need to install bind9 and configure it?<br>
Thank you<br>Meg <br>