apache virtual host problem
Ashley Benton
meggalen at gmail.com
Mon Feb 4 19:09:15 UTC 2008
I will try again like you say and delete everything that I put in every
other files. I still have one question. Last night I copy my second site
main page, put it in the first site folder, and change the links to have the
first site open it where it was. It didn't work with my computer using
Ubuntu 7.10, but it worked with Windows.
If I try to see it with internet explorer and Firefox using Windows it
works.
If I try to see it using Firefox and Ubuntu 7.10 I can't see neither the
links nor the other page?
Do I have to put it in the list of file, inside the host configuration?
I think I am missing something very easy and important but I have been
reading and searching and I didn't find out yet.
>From what you say I imagine that I don't have to add NameVirtualHost in
/etc/apache2/ports.conf. so I will delete it too. I have been trying some
more last night and I am stuck.
Thank you for your answer, I will change the files back and let you know the
result.
Meg
On Feb 4, 2008 10:56 AM, Derek Broughton <news at pointerstop.ca> wrote:
> Ashley Benton wrote:
>
> > Sorry I have NameVirtualHost 192.168.0.105 on the first line and
> > <VirtualHost 192.168.0.105 > on the second line.
> > Meg
>
> Karl's leading you astray...
>
> One only needs NameVirtualHost to specify an IP if you have multiple
> interfaces to the Internet. For this, and almost certainly for your
> production version, you want:
>
> NameVirtualHost *
>
> <VirtualHost *>
> ServerName example.org
> ...
> </VirtualHost>
>
> <VirtualHost *>
> ServerName another.org
> ...
> </VirtualHost>
>
> From your original mail:
>
> > I tried to add the following lines in /etc/apache2/http.conf
> > ServerName localhost
> > ServerName www.example1.com
> > ServerName www.example2.com
> > ServerName www.Example.org
>
> That's bad :-) You want the ServerName directives for each virtual host
> _only_ within the <VirtualHost> definition.
>
> (and we don't ever modify http.conf! - put each virtual host config in a
> separate file in /etc/apache2/sites-enabled)
> --
> derek
>
>
> --
> 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/20080204/9ed0812f/attachment.html>
More information about the ubuntu-users
mailing list