Ok I tried and changed NameVirtualHost <a href="http://192.168.0.105">192.168.0.105</a> for all virtual hosts and I still got the same result. You can see only the first<br> <NameVirtualHost <a href="http://192.168.0.105">192.168.0.105</a>> <br>
<br>page. Every outside connection will come on this address, port 80, and it works with the first site but not the others. Do I have to put a different internal address and how do I tell the computer to add another internal address? Is it because I use the same settings for all virtual hosts that the computer can't find it. I would think it is my problem but I don't know how to solve it.<br>
I tried to put the first with my public IP and the others with <a href="http://192.168.0.105">192.168.0.105</a> but it didn't change the result.<br>Thanks<br>Meg<br><br><br><div class="gmail_quote">On Feb 3, 2008 7:25 PM, Karl Auer <<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Sun, 2008-02-03 at 18:34 -0500, Ashley Benton wrote:<br>> I am trying to set up apache2 to see more than one virtual host but<br>
> don't find my error. Each time I try to see one of the three examples,<br>> Apache served me the first site I configured and can't find the<br>> others.<br><br></div>It sounds like you didn't use the NameVirtualHost directive.<br>
<br> ...<br><br> NameVirtualHost <IP address of server><br><br> ...<br><br> <VirtualHost <IP address of server>><br> ...<br> </VirtualHost><br><br> <VirtualHost <IP address of server>><br>
...<br> </VirtualHost><br><br> ...<br><div class="Ih2E3d"><br><br>> Just one more question, do I need to Buy a DNS if I need them on<br>> internet later? and for now do I need to install bind9 and configure<br>
> it?<br><br></div>Name service is needed if you want to find the sites by name. As long as<br>you are accessing these sites from only one or two machines, you can<br>use /etc/hosts on those machines, and you can use private addresses.<br>
<br>If you want to go public, and have your sites visible on the Internet,<br>you will need to obtain public IP addresses, advertise them in the<br>global DNS, and (obviously) change the Apache config to use those<br>addresses. A (poor) alternative would be to put the server behind a NAT<br>
and direct all your site names to the same IP address using a dynamic<br>name server.<br><br>Regards, K.<br><font color="#888888"><br>--<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Karl Auer (<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>) +61-2-64957160 (h)<br>
<a href="http://www.biplane.com.au/%7Ekauer/" target="_blank">http://www.biplane.com.au/~kauer/</a> +61-428-957160 (mob)<br><br>GPG fingerprint: DD23 0DF3 2260 3060 7FEC 5CA8 1AF6 D9E3 CFEE 6B28<br>Public key at : <a href="http://random.sks.keyserver.penguin.de" target="_blank">random.sks.keyserver.penguin.de</a><br>
<br></font><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br>