<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Creating Multiple Sites on a Local Web Server</title>
	<atom:link href="http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/</link>
	<description>Doing That Web Standards Thing</description>
	<pubDate>Wed, 07 Jan 2009 10:50:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 2 sites on XAMPP</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-812</link>
		<dc:creator>2 sites on XAMPP</dc:creator>
		<pubDate>Thu, 15 May 2008 15:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-812</guid>
		<description>not sure exactly what my problem was howevr here is exactly what i did:

If you are having a problem setting up multiple web sites using XAMPP try the following process:

Assumptions- root folders for your two sites are:

c:/mysite/
c:/myweb/

1) add these lines to the Windows Hosts file

&lt;em&gt;127.0.0.1. myweb&lt;/em&gt;
&lt;em&gt;127.0.0.1. mysite&lt;/em&gt;

2) Into Apache's "\xampp\apache\conf\Http.conf" file add the following:

&lt;code&gt;
&#60;Directory c:\myweb&#62;
Order allow,deny
Allow from all
&#60;/Directory&#62;

&#60;Directory c:\mysite&#62;
Order allow,deny
Allow from all
&#60;/Directory&#62;
&lt;/code&gt;


3) Add this is the "\xampp\apache\conf\extra\httpd-vhosts.conf" file:

&lt;code&gt;
&#60;VirtualHost *:80&#62;
ServerName myweb
DocumentRoot C:\myweb
&#60;Directory C:\myweb&#62;
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
&#60;/Directory&#62;
&#60;/VirtualHost&#62;

&#60;VirtualHost *:80&#62;
ServerName mysite
DocumentRoot C:\mysite
&#60;Directory C:\mysite&#62;
IndexOptions +FancyIndexing NameWidth=*
Options Includes FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
&#60;/Directory&#62;
&#60;/VirtualHost&#62;
&lt;/code&gt;

Now open a browser and simple type either myweb or mysite and you should be able to see both of your site wih all the php in their full glory!</description>
		<content:encoded><![CDATA[<p>not sure exactly what my problem was howevr here is exactly what i did:</p>
<p>If you are having a problem setting up multiple web sites using XAMPP try the following process:</p>
<p>Assumptions- root folders for your two sites are:</p>
<p>c:/mysite/<br />
c:/myweb/</p>
<p>1) add these lines to the Windows Hosts file</p>
<p><em>127.0.0.1. myweb</em><br />
<em>127.0.0.1. mysite</em></p>
<p>2) Into Apache&#8217;s &#8220;\xampp\apache\conf\Http.conf&#8221; file add the following:</p>
<p><code><br />
&lt;Directory c:\myweb&gt;<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>&lt;Directory c:\mysite&gt;<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
</code></p>
<p>3) Add this is the &#8220;\xampp\apache\conf\extra\httpd-vhosts.conf&#8221; file:</p>
<p><code><br />
&lt;VirtualHost *:80&gt;<br />
ServerName myweb<br />
DocumentRoot C:\myweb<br />
&lt;Directory C:\myweb&gt;<br />
IndexOptions +FancyIndexing NameWidth=*<br />
Options Includes FollowSymLinks Indexes<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost *:80&gt;<br />
ServerName mysite<br />
DocumentRoot C:\mysite<br />
&lt;Directory C:\mysite&gt;<br />
IndexOptions +FancyIndexing NameWidth=*<br />
Options Includes FollowSymLinks Indexes<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;<br />
</code></p>
<p>Now open a browser and simple type either myweb or mysite and you should be able to see both of your site wih all the php in their full glory!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-811</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Thu, 15 May 2008 14:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-811</guid>
		<description>@Chilli King-
Great! What was the issue you were having and how did you solve it?</description>
		<content:encoded><![CDATA[<p>@Chilli King-<br />
Great! What was the issue you were having and how did you solve it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chilli King</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-810</link>
		<dc:creator>Chilli King</dc:creator>
		<pubDate>Thu, 15 May 2008 14:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-810</guid>
		<description>Hi - just managed to solve the problem thask to this thread:

http://forums.whirlpool.net.au/forum-replies-archive.cfm/569991.html</description>
		<content:encoded><![CDATA[<p>Hi - just managed to solve the problem thask to this thread:</p>
<p><a href="http://forums.whirlpool.net.au/forum-replies-archive.cfm/569991.html" rel="nofollow">http://forums.whirlpool.net.au/forum-replies-archive.cfm/569991.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chilli King</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-809</link>
		<dc:creator>Chilli King</dc:creator>
		<pubDate>Thu, 15 May 2008 13:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-809</guid>
		<description>thanks for the reply. i've uncommented that line so now i have:

NameVirtualHost *:80
VirtualHost *:80
    DocumentRoot "E:\xampp\htdocs\chilliking"
    ServerName localhost.chilliking
/VirtualHost

VirtualHost *:80
    DocumentRoot "E:\xampp\htdocs\cycling"
    ServerName localhost.cycling
/VirtualHost

unfortunately i still get the same behaviour....nothing unless i just browse to http://localhost, where i can then view whichever site comes first in my vhosts file.

Any other ideas?</description>
		<content:encoded><![CDATA[<p>thanks for the reply. i&#8217;ve uncommented that line so now i have:</p>
<p>NameVirtualHost *:80<br />
VirtualHost *:80<br />
    DocumentRoot &#8220;E:\xampp\htdocs\chilliking&#8221;<br />
    ServerName localhost.chilliking<br />
/VirtualHost</p>
<p>VirtualHost *:80<br />
    DocumentRoot &#8220;E:\xampp\htdocs\cycling&#8221;<br />
    ServerName localhost.cycling<br />
/VirtualHost</p>
<p>unfortunately i still get the same behaviour&#8230;.nothing unless i just browse to <a href="http://localhost" rel="nofollow">http://localhost</a>, where i can then view whichever site comes first in my vhosts file.</p>
<p>Any other ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-808</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Thu, 15 May 2008 13:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-808</guid>
		<description>@Chilli King-
Did you find this line &lt;strong&gt;NameVirtualHost *:80&lt;/strong&gt;? By default, it should be commented out (# at the beginning of the line). Make sure you un-comment that line.</description>
		<content:encoded><![CDATA[<p>@Chilli King-<br />
Did you find this line <strong>NameVirtualHost *:80</strong>? By default, it should be commented out (# at the beginning of the line). Make sure you un-comment that line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chilli King</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-807</link>
		<dc:creator>Chilli King</dc:creator>
		<pubDate>Thu, 15 May 2008 13:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-807</guid>
		<description>Trev, nice site, nice explanation but for the life of me i can't get it to work!!!

I've got this in my hosts file:

127.0.0.1       localhost
127.0.0.1       localhost.chilliking
127.0.0.1       localhost.cycling

and this in my vhosts.conf file:


    DocumentRoot "E:\xampp\htdocs\cycling"
    ServerName localhost.cycling



    DocumentRoot "E:\xampp\htdocs\chilliking"
    ServerName localhost.chilliking


When I browse to http://localhost.cycling/ or http://localhost.thechilliking/ i get the following error:

Could Not Connect to Server
Webwasher was not able to connect to localhost.cycling.
If you would like to try again, click here.  

Interestingly when i try to browse to http://localhost/ i can view the cycling site no problems. The only way i can successfully view the chilli site is o switch the order of the entries in the vhosts file. i .e. change the text above to :


    DocumentRoot "E:\xampp\htdocs\chilliking"
    ServerName localhost.chilliking



    DocumentRoot "E:\xampp\htdocs\cycling"
    ServerName localhost.cycling



Any ideas???</description>
		<content:encoded><![CDATA[<p>Trev, nice site, nice explanation but for the life of me i can&#8217;t get it to work!!!</p>
<p>I&#8217;ve got this in my hosts file:</p>
<p>127.0.0.1       localhost<br />
127.0.0.1       localhost.chilliking<br />
127.0.0.1       localhost.cycling</p>
<p>and this in my vhosts.conf file:</p>
<p>    DocumentRoot &#8220;E:\xampp\htdocs\cycling&#8221;<br />
    ServerName localhost.cycling</p>
<p>    DocumentRoot &#8220;E:\xampp\htdocs\chilliking&#8221;<br />
    ServerName localhost.chilliking</p>
<p>When I browse to <a href="http://localhost.cycling/" rel="nofollow">http://localhost.cycling/</a> or <a href="http://localhost.thechilliking/" rel="nofollow">http://localhost.thechilliking/</a> i get the following error:</p>
<p>Could Not Connect to Server<br />
Webwasher was not able to connect to localhost.cycling.<br />
If you would like to try again, click here.  </p>
<p>Interestingly when i try to browse to <a href="http://localhost/" rel="nofollow">http://localhost/</a> i can view the cycling site no problems. The only way i can successfully view the chilli site is o switch the order of the entries in the vhosts file. i .e. change the text above to :</p>
<p>    DocumentRoot &#8220;E:\xampp\htdocs\chilliking&#8221;<br />
    ServerName localhost.chilliking</p>
<p>    DocumentRoot &#8220;E:\xampp\htdocs\cycling&#8221;<br />
    ServerName localhost.cycling</p>
<p>Any ideas???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raghav mathur</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-620</link>
		<dc:creator>raghav mathur</dc:creator>
		<pubDate>Mon, 24 Mar 2008 20:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-620</guid>
		<description>NameVirtualHost 127.0.0.1


   DocumentRoot "c:/site1"
   ServerName www.yoursite.com



  Order Deny,Allow
  Allow from all


u missed the directory part to set permission jus add u will be oaky</description>
		<content:encoded><![CDATA[<p>NameVirtualHost 127.0.0.1</p>
<p>   DocumentRoot &#8220;c:/site1&#8221;<br />
   ServerName <a href="http://www.yoursite.com" rel="nofollow">http://www.yoursite.com</a></p>
<p>  Order Deny,Allow<br />
  Allow from all</p>
<p>u missed the directory part to set permission jus add u will be oaky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Turner</title>
		<link>http://trevordavis.net/blog/tutorial/creating-multiple-sites-on-a-local-web-server/comment-page-1/#comment-248</link>
		<dc:creator>Adrian Turner</dc:creator>
		<pubDate>Sun, 16 Dec 2007 00:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://trevordavis.net/?p=43#comment-248</guid>
		<description>When i enter:

http://localhost.seeyouin1984.dev/

my site doesn't load i just get another version of the page that lets you know the install was successful and the url changes to:

http://localhost.seeyouin1984.dev/xampp/

I there something I could have missed?</description>
		<content:encoded><![CDATA[<p>When i enter:</p>
<p><a href="http://localhost.seeyouin1984.dev/" rel="nofollow">http://localhost.seeyouin1984.dev/</a></p>
<p>my site doesn&#8217;t load i just get another version of the page that lets you know the install was successful and the url changes to:</p>
<p><a href="http://localhost.seeyouin1984.dev/xampp/" rel="nofollow">http://localhost.seeyouin1984.dev/xampp/</a></p>
<p>I there something I could have missed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
