apache virtual host problem
Ashley Benton
meggalen at gmail.com
Mon Feb 4 00:48:49 UTC 2008
Ok I tried and changed NameVirtualHost 192.168.0.105 for all virtual hosts
and I still got the same result. You can see only the first
<NameVirtualHost 192.168.0.105>
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.
I tried to put the first with my public IP and the others with
192.168.0.105but it didn't change the result.
Thanks
Meg
On Feb 3, 2008 7:25 PM, Karl Auer <kauer at biplane.com.au> wrote:
> On Sun, 2008-02-03 at 18:34 -0500, Ashley Benton wrote:
> > 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.
>
> It sounds like you didn't use the NameVirtualHost directive.
>
> ...
>
> NameVirtualHost <IP address of server>
>
> ...
>
> <VirtualHost <IP address of server>>
> ...
> </VirtualHost>
>
> <VirtualHost <IP address of server>>
> ...
> </VirtualHost>
>
> ...
>
>
> > 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?
>
> Name service is needed if you want to find the sites by name. As long as
> you are accessing these sites from only one or two machines, you can
> use /etc/hosts on those machines, and you can use private addresses.
>
> If you want to go public, and have your sites visible on the Internet,
> you will need to obtain public IP addresses, advertise them in the
> global DNS, and (obviously) change the Apache config to use those
> addresses. A (poor) alternative would be to put the server behind a NAT
> and direct all your site names to the same IP address using a dynamic
> name server.
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer at biplane.com.au) +61-2-64957160 (h)
> http://www.biplane.com.au/~kauer/ <http://www.biplane.com.au/%7Ekauer/>
> +61-428-957160 (mob)
>
> GPG fingerprint: DD23 0DF3 2260 3060 7FEC 5CA8 1AF6 D9E3 CFEE 6B28
> Public key at : random.sks.keyserver.penguin.de
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080203/8da682a6/attachment.html>
More information about the ubuntu-users
mailing list