
<?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: Setting Up A Subdomain on Localhost</title>
	<atom:link href="http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/</link>
	<description>We build, mobilise and empower communities</description>
	<lastBuildDate>Thu, 02 Sep 2010 23:21:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: diju</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1364</link>
		<dc:creator>diju</dc:creator>
		<pubDate>Sun, 11 Apr 2010 10:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1364</guid>
		<description>i have created a domain and a subdomain but when ever i enter the subdomain , the page loads from domain. am using linux .Please tell me all the configuration needed.</description>
		<content:encoded><![CDATA[<p>i have created a domain and a subdomain but when ever i enter the subdomain , the page loads from domain. am using linux .Please tell me all the configuration needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: passcod</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1350</link>
		<dc:creator>passcod</dc:creator>
		<pubDate>Fri, 29 Jan 2010 01:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1350</guid>
		<description>Note that you don&#039;t need to reboot (on a windows machine) :

All you have to do is stop then start (restart) Apache, and then unplug / switch off any network cable / wifi ... and then restart them. And depending on what file you change, you only need to restart one of these: Apache for the .conf files, and the network for the hosts file.

Usually this is faster than rebooting. I&#039;ve only tested that on Windows (xp / vista / 7), but I&#039;m sure it can be done on something else too...</description>
		<content:encoded><![CDATA[<p>Note that you don&#8217;t need to reboot (on a windows machine) :</p>
<p>All you have to do is stop then start (restart) Apache, and then unplug / switch off any network cable / wifi &#8230; and then restart them. And depending on what file you change, you only need to restart one of these: Apache for the .conf files, and the network for the hosts file.</p>
<p>Usually this is faster than rebooting. I&#8217;ve only tested that on Windows (xp / vista / 7), but I&#8217;m sure it can be done on something else too&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben J Walker</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1346</link>
		<dc:creator>Ben J Walker</dc:creator>
		<pubDate>Mon, 28 Dec 2009 10:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1346</guid>
		<description>Works fine for me until I add a second subdomain, which for some reason points back to the first one I set up. Any ideas?</description>
		<content:encoded><![CDATA[<p>Works fine for me until I add a second subdomain, which for some reason points back to the first one I set up. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regan Rajan</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1345</link>
		<dc:creator>Regan Rajan</dc:creator>
		<pubDate>Tue, 22 Dec 2009 12:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1345</guid>
		<description>Ops, the server is stripping off the tag. You need to have the &quot;Less than&quot; and &quot;Greater than&quot;.

I try to write again using html encoding;

NameVirtualHost *:80
&lt;virtualhost&gt;
   DocumentRoot &quot;C:/xampp/htdocs&quot;
   ServerName localhost
&lt;/virtualhost&gt;
&lt;virtualhost&gt;
   DocumentRoot &quot;C:/xampp/htdocs/sub&quot;
   ServerName sub.localhost
&lt;/virtualhost&gt;

If that also come out without the tags then maybe you can take a look at the blog post which I published: http://reganrajan.blogspot.com/2009/12/how-to-add-subdomainslocalhost-if-using.html</description>
		<content:encoded><![CDATA[<p>Ops, the server is stripping off the tag. You need to have the &#8220;Less than&#8221; and &#8220;Greater than&#8221;.</p>
<p>I try to write again using html encoding;</p>
<p>NameVirtualHost *:80<br />
&lt;virtualhost&gt;<br />
   DocumentRoot &#8220;C:/xampp/htdocs&#8221;<br />
   ServerName localhost<br />
&lt;/virtualhost&gt;<br />
&lt;virtualhost&gt;<br />
   DocumentRoot &#8220;C:/xampp/htdocs/sub&#8221;<br />
   ServerName sub.localhost<br />
&lt;/virtualhost&gt;</p>
<p>If that also come out without the tags then maybe you can take a look at the blog post which I published: <a href="http://reganrajan.blogspot.com/2009/12/how-to-add-subdomainslocalhost-if-using.html" rel="nofollow">http://reganrajan.blogspot.com/2009/12/how-to-add-subdomainslocalhost-if-using.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regan Rajan</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1344</link>
		<dc:creator>Regan Rajan</dc:creator>
		<pubDate>Tue, 22 Dec 2009 11:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1344</guid>
		<description>Its true that the advise above did not work. It is mainly because of the NameVirtualHost. I found a much simple one here: http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/

The suggestion was simple and worked. Just add like this in C:\xampp\apache\conf\extra\httpd-vhosts.conf;

NameVirtualHost *:80

    DocumentRoot &quot;C:/xampp/htdocs&quot;
    ServerName localhost


    DocumentRoot &quot;C:/xampp/htdocs/sub&quot;
    ServerName sub.localhost


And add this in the C:\Windows\System32\drivers\etc\hosts
127.0.0.1       localhost
127.0.0.1       sub.localhost</description>
		<content:encoded><![CDATA[<p>Its true that the advise above did not work. It is mainly because of the NameVirtualHost. I found a much simple one here: <a href="http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/" rel="nofollow">http://www.ardamis.com/2005/08/11/xampp-apache-namevirtualhost/</a></p>
<p>The suggestion was simple and worked. Just add like this in C:\xampp\apache\conf\extra\httpd-vhosts.conf;</p>
<p>NameVirtualHost *:80</p>
<p>    DocumentRoot &#8220;C:/xampp/htdocs&#8221;<br />
    ServerName localhost</p>
<p>    DocumentRoot &#8220;C:/xampp/htdocs/sub&#8221;<br />
    ServerName sub.localhost</p>
<p>And add this in the C:\Windows\System32\drivers\etc\hosts<br />
127.0.0.1       localhost<br />
127.0.0.1       sub.localhost</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris M</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1342</link>
		<dc:creator>Chris M</dc:creator>
		<pubDate>Fri, 13 Nov 2009 23:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1342</guid>
		<description>I can&#039;t get it working either. I followed the steps carefully but now i get a &quot;server not found&quot; message.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get it working either. I followed the steps carefully but now i get a &#8220;server not found&#8221; message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1336</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1336</guid>
		<description>If you are copying and pasting, remember to re-do the quote marks in the example above  - as they will stop apache from restarting!! &quot;From curly to normal&quot;</description>
		<content:encoded><![CDATA[<p>If you are copying and pasting, remember to re-do the quote marks in the example above  &#8211; as they will stop apache from restarting!! &#8220;From curly to normal&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1334</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 24 Oct 2009 05:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1334</guid>
		<description>Check it:
In httpd-vhost.conf file...

# Use name-based virtual hosting.
NameVirtualHost *:80



DocumentRoot C:/xampp/htdocs/
ServerName localhost
ServerAdmin admin@localhost



DocumentRoot C:/xampp/htdocs/subdomain/
ServerName subdomain.localhost
ServerAdmin admin@subdomain.localhost

Options Indexes FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all

 
 
Unh!...

And in your HOSTS file:
127.0.0.1 subdomain.localhost

Make it simple.</description>
		<content:encoded><![CDATA[<p>Check it:<br />
In httpd-vhost.conf file&#8230;</p>
<p># Use name-based virtual hosting.<br />
NameVirtualHost *:80</p>
<p>DocumentRoot C:/xampp/htdocs/<br />
ServerName localhost<br />
ServerAdmin admin@localhost</p>
<p>DocumentRoot C:/xampp/htdocs/subdomain/<br />
ServerName subdomain.localhost<br />
ServerAdmin <a href="mailto:admin@subdomain.localhost">admin@subdomain.localhost</a></p>
<p>Options Indexes FollowSymLinks<br />
AllowOverride FileInfo<br />
Order allow,deny<br />
Allow from all</p>
<p>Unh!&#8230;</p>
<p>And in your HOSTS file:<br />
127.0.0.1 subdomain.localhost</p>
<p>Make it simple.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1333</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 24 Oct 2009 04:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1333</guid>
		<description>Now that virtualhost is set in those files, why can&#039;t I see htdocs, when I type in http://localhost/</description>
		<content:encoded><![CDATA[<p>Now that virtualhost is set in those files, why can&#8217;t I see htdocs, when I type in <a href="http://localhost/" rel="nofollow">http://localhost/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iwanttobelieve</title>
		<link>http://www.offshootinc.com/blog/2007/12/21/setting-up-a-subdomain-on-localhost/comment-page-1/#comment-1332</link>
		<dc:creator>iwanttobelieve</dc:creator>
		<pubDate>Thu, 15 Oct 2009 11:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.offshootinc.com/blog/?p=35#comment-1332</guid>
		<description>This is particularly useful for testing locally. But I would like to ask about subdomain and folder, which one is better?

Thanks :)</description>
		<content:encoded><![CDATA[<p>This is particularly useful for testing locally. But I would like to ask about subdomain and folder, which one is better?</p>
<p>Thanks <img src='http://www.offshootinc.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
