Many thanks, this makes sense :-)<br><br><div class="gmail_quote">2009/7/30 Marcel Hecko <span dir="ltr">&lt;<a href="mailto:marcel@shmu.org.uk">marcel@shmu.org.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The hostname (labs.localhost) needs to resolve to a IP address - the<br>
/etc/hosts file does exactly that , but only locally, so don&#39;t expect it<br>
to work on any other box than on the local host (or you have to point the<br>
hostname to a remote IP address in the /etc/hosts file on that box where<br>
you want to access the website from; or set-up a DNS record for that<br>
hostname). :) After the connection is made to the IP address the HTTP<br>
protocol asks HTTPd for the particular website (labs.localhost).<br>
<br>
Marcel<br>
<br>
&lt;quote who=&quot;christopher wyllie&quot;&gt;<br>
<div><div class="h5">&gt; Thankyou you have the exact answer ! :-D<br>
&gt; That&#39;s wonderful, cheers. Can you explain why this needs done because<br>
&gt; nothing I&#39;ve read anywhere mentioned it :-\<br>
&gt; Thanks,<br>
&gt;   Chris<br>
&gt;<br>
&gt; 2009/7/29 Andrzej Hajto &lt;tlug@defcon1.eu&gt;<br>
&gt;<br>
&gt;&gt; Maybe adding 127.0.0.1 labs.localhost in   /etc/hosts will help.<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jul 29, 2009 at 10:52 PM, christopher<br>
&gt;&gt; wyllie&lt;<a href="mailto:cgwyllie@googlemail.com">cgwyllie@googlemail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt; I am currently trying to set up a virtual host on my localhost server.<br>
&gt;&gt; I<br>
&gt;&gt; &gt; have tried several times but so far no luck. The page I&#39;ve been<br>
&gt;&gt; following<br>
&gt;&gt; &gt; just now is this: <a href="http://www.debian-administration.org/articles/412" target="_blank">http://www.debian-administration.org/articles/412</a><br>
&gt;&gt; &gt; I&#39;m running Debian Etch with Apache 2.2.3. I setup the<br>
&gt;&gt; &quot;NameVirtualHost<br>
&gt;&gt; *&quot;<br>
&gt;&gt; &gt; as shown at the link I posted. I have the &quot;default&quot; virtual host file<br>
&gt;&gt; in<br>
&gt;&gt; &gt; sites-available and symlinked to the sites-enabled. Then, I&#39;ve created<br>
&gt;&gt; a<br>
&gt;&gt; &gt; &quot;labs.localhost&quot; file and enabled it too. It simply has a different<br>
&gt;&gt; &gt; ServerName and DocumentRoot.<br>
&gt;&gt; &gt; Apache restarts no problem but when I try to visit &quot;<br>
&gt;&gt; <a href="http://labs.localhost" target="_blank">http://labs.localhost</a>&quot; I<br>
&gt;&gt; &gt; get a &quot;could not locate remote server&quot; error in the browser...<br>
&gt;&gt; &gt; Has anyone got any ideas on how to fix this? Is it a DNS issue or<br>
&gt;&gt; similar?<br>
&gt;&gt; &gt; It would be useful for me to have virtualhosts but I can&#39;t seem to get<br>
&gt;&gt; it<br>
&gt;&gt; &gt; working :-(<br>
&gt;&gt; &gt; Thanks for reading,<br>
&gt;&gt; &gt;   Chris<br>
&gt;&gt; &gt; P.S. Included site config files...<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; dundee GNU/Linux Users Group mailing list<br>
&gt;&gt; &gt; <a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a>  <a href="http://dundeelug.org.uk" target="_blank">http://dundeelug.org.uk</a><br>
&gt;&gt; &gt; <a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
&gt;&gt; &gt; Chat on IRC, #tlug on <a href="http://irc.lug.org.uk" target="_blank">irc.lug.org.uk</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; dundee GNU/Linux Users Group mailing list<br>
&gt;&gt; <a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a>  <a href="http://dundeelug.org.uk" target="_blank">http://dundeelug.org.uk</a><br>
&gt;&gt; <a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
&gt;&gt; Chat on IRC, #tlug on <a href="http://irc.lug.org.uk" target="_blank">irc.lug.org.uk</a><br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; dundee GNU/Linux Users Group mailing list<br>
&gt; <a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a>  <a href="http://dundeelug.org.uk" target="_blank">http://dundeelug.org.uk</a><br>
&gt; <a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
&gt; Chat on IRC, #tlug on <a href="http://irc.lug.org.uk" target="_blank">irc.lug.org.uk</a><br>
<br>
<br>
</div></div>please reply to<br>
<a href="mailto:marcel@shmu.org.uk">marcel@shmu.org.uk</a><br>
<br>
Marcel Hecko<br>
Connected SHMU Development Worker<br>
Station House Media Unit<br>
Station Road, Woodside,<br>
Aberdeen  AB24 2WB<br>
Tel - 01224 487174<br>
<br>
<br>
<br>
<a href="http://www.shmu.org.uk" target="_blank">www.shmu.org.uk</a><br>
<br>
listen to our community radio station live at <a href="http://www.shmufm.net" target="_blank">www.shmufm.net</a><br>
<br>
---------------------------------------------------------------------------------------<br>
This message is not intended to have contractual effect<br>
---------------------------------------------------------------------------------------<br>
<br>
Save a tree -  don&#39;t print this e-mail or any attachment unless absolutely<br>
necessary.<br>
<div><div class="h5"><br>
<br>
_______________________________________________<br>
dundee GNU/Linux Users Group mailing list<br>
<a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a>  <a href="http://dundeelug.org.uk" target="_blank">http://dundeelug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
Chat on IRC, #tlug on <a href="http://irc.lug.org.uk" target="_blank">irc.lug.org.uk</a><br>
</div></div></blockquote></div><br>