Thank you for the explanation, that does help me to understand.<br>To stop the warning it is easy in your virtual host you have NameVirtualHost for me on the first line of every VirtualHost then <VirtualHost> You just leave NameVirtualHost for the first Virtual Host and delete it for every other host. The warning will stop.<br>
I found the answer to stop the warning on this site (I can't find which pages, I apparently bookmarked the wrong) but you should be able to find it somewhere.<br><a href="http://wiki.apache.org/httpd/CommonMisconfigurations">http://wiki.apache.org/httpd/CommonMisconfigurations</a><br>
That did work, now I can see it from this computer too<br>Thank you very much<br>Meg<br><br><div class="gmail_quote">On Feb 5, 2008 10:46 AM, Derek Broughton <<a href="mailto:news@pointerstop.ca">news@pointerstop.ca</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">Ashley Benton wrote:<br><br>> I was able to set the computer which the files are on to see that it has<br>
> more than one virtual host by adding a line at the end of<br>> /etc/apache2/apache2.conf<br>> "Include the virtual host configuration and listing every virtual host I<br>> wanted."<br><br>> I deleted the first line NameVirtualHost for the 2 new VirtualHost and<br>
> don't have the error message that NameVirtualHost has no host, so<br>> everything seems fine.<br><br></div>I think that's only a warning - I get "[warn] NameVirtualHost *:0 has no<br>VirtualHosts" every time I start, I've been unable to get rid of it (and<br>
neither has anybody else I've seen via google), and all my vhosts work.<br><div class="Ih2E3d"><br>> My problem now is to open this page with another computer on the<br>> network.http://192.168.0.105/www.theswebsite.com<br>
<br></div>That's not how virtual hosts work.<br><br>Here's what I have:<br><br>NameVirtualHost *<br><VirtualHost *><br>  ServerName nagisa<br>  ServerAlias <a href="http://nagisa.pointerstop.ca" target="_blank">nagisa.pointerstop.ca</a><br>
  ...<br></VirtualHost><br><VirtualHost *><br>  ServerName plonevdc<br>  ServerAlias <a href="http://plonevdc.pointerstop.ca" target="_blank">plonevdc.pointerstop.ca</a><br>  ...<br></VirtualHost><br><br>
My /etc/hosts has:<br><br><a href="http://127.0.0.1" target="_blank">127.0.0.1</a> localhost<br><a href="http://127.0.2.1" target="_blank">127.0.2.1</a> <a href="http://nagisa.pointerstop.ca" target="_blank">nagisa.pointerstop.ca</a> nagisa<br>
<a href="http://127.0.2.2" target="_blank">127.0.2.2</a> <a href="http://plonevdc.pointerstop.ca" target="_blank">plonevdc.pointerstop.ca</a> plonevdc<br><br>For any other host on the local subnet, /etc/hosts has to include (using<br>
your IP):<br><br><a href="http://192.168.0.105" target="_blank">192.168.0.105</a> <a href="http://nagisa.pointerstop.ca" target="_blank">nagisa.pointerstop.ca</a> nagisa<br><a href="http://192.168.0.105" target="_blank">192.168.0.105</a> <a href="http://plonevdc.pointerstop.ca" target="_blank">plonevdc.pointerstop.ca</a> plonevdc<br>
<br>[One of these days, I'll get around to figuring out how to put cnames into<br>the DNS on my router so that I don't need that...]<br><br>Now, you access plonevdc via <a href="http://plonevdc/path" target="_blank">http://plonevdc/path</a> or<br>
<a href="http://plonevdc.pointerstop.ca/path" target="_blank">http://plonevdc.pointerstop.ca/path</a> from any machine on my lan.  Apache<br>looks at the http headers and sees what was _requested_ and directs to the<br>appropriate vhost.  It doesn't care what IP was actually used (unless you<br>
manually specify an IP in either NameVirtualHost or <VirtualHost>.  That's<br>why it's best not to use NameVirtualHost <a href="http://192.168.0.105" target="_blank">192.168.0.105</a> - this means that<br>all network requests have to come _from_ the external network, and you<br>
can't get there via <a href="http://localhost/" target="_blank">http://localhost/</a> - or any name that translates to<br>127.x.x.x).<br><br>If you manually specify the IP in the http request, it _never_ goes to the<br>
virtual host, because the IP is not given as a ServerAlias in any virtual<br>host spec.<br>--<br>derek<br><font color="#888888"><br><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></font></blockquote></div><br>