Thank you, I will try that tomorrow morning, but I thought that a2ensite site name was the same thing that a soft link. I read that a few times when searching how to make apache2 works with more than 1 virtual host, is it wrong?<br>
Sincerely<br>Meg<br><br><div class="gmail_quote">On Feb 4, 2008 10:07 PM, Kim Briggs <<a href="mailto:patiodragon@gmail.com">patiodragon@gmail.com</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><div></div><div class="Wj3C7c">On 2/4/08, Derek Broughton <<a href="mailto:news@pointerstop.ca">news@pointerstop.ca</a>> wrote:<br>> Ashley Benton wrote:<br>><br>> > Sorry I have NameVirtualHost <a href="http://192.168.0.105" target="_blank">192.168.0.105</a> on the first line and<br>
> > <VirtualHost <a href="http://192.168.0.105" target="_blank">192.168.0.105</a> > on the second line.<br>> > Meg<br>><br>> Karl's leading you astray...<br>><br>> One only needs NameVirtualHost to specify an IP if you have multiple<br>
> interfaces to the Internet.  For this, and almost certainly for your<br>> production version, you want:<br>><br>> NameVirtualHost *<br>><br>> <VirtualHost *><br>>    ServerName <a href="http://example.org" target="_blank">example.org</a><br>
>    ...<br>> </VirtualHost><br>><br>> <VirtualHost *><br>>    ServerName <a href="http://another.org" target="_blank">another.org</a><br>>    ...<br>> </VirtualHost><br>><br>> From your original mail:<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" target="_blank">www.example1.com</a><br>> > ServerName <a href="http://www.example2.com" target="_blank">www.example2.com</a><br>
> > ServerName <a href="http://www.Example.org" target="_blank">www.Example.org</a><br>><br>> That's bad :-)  You want the ServerName directives for each virtual host<br>> _only_ within the <VirtualHost> definition.<br>
><br>> (and we don't ever modify http.conf! - put each virtual host config in a<br>> separate file in /etc/apache2/sites-enabled)<br>> --<br>> derek<br>><br></div></div>Yes, if you are using the latest Ubuntu with apache2, you should<br>
definitely be using "sites-enabled", but normally you put the files in<br>"sites-available" and then turn them on and off with soft-links.  Here<br>is a complete "how-to" for a development machine:<br>
<br><a href="http://kimbriggs.com/computers/computer-notes/linux-notes/apache2-public_html-virtual-directories.file" target="_blank">http://kimbriggs.com/computers/computer-notes/linux-notes/apache2-public_html-virtual-directories.file</a><br>
<br>cheers,<br><font color="#888888">--<br><a href="http://kimbriggs.com" target="_blank">http://kimbriggs.com</a><br></font><div><div></div><div class="Wj3C7c"><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></div></div></blockquote></div><br>