<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Geek is a lifestyle &#187; cPAnel</title>
	<atom:link href="http://blog.amanjain.com/tag/cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.amanjain.com</link>
	<description>Aman's Blog</description>
	<lastBuildDate>Wed, 06 Jan 2010 10:47:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Virtual subdomains</title>
		<link>http://blog.amanjain.com/2008/12/virtual-subdomains/</link>
		<comments>http://blog.amanjain.com/2008/12/virtual-subdomains/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 06:24:02 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[cPAnel]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[virtual subdomain]]></category>

		<guid isPermaLink="false">http://blog.amanjain.com/?p=7</guid>
		<description><![CDATA[With the ever dynamic web world and to turn the web from a passive to an active entity , webmasters are fascinated with the idea of having subdomains for users like http://user.domain.ext.  Looks quite neat and tricky.
Yes that can be done easily, just by some configurations in your website cPanel. The steps are:
A. Login to [...]]]></description>
			<content:encoded><![CDATA[<p>With the ever dynamic web world and to turn the web from a passive to an active entity , webmasters are fascinated with the idea of having subdomains for users like <strong>http://user.domain.ext</strong>.  Looks quite neat and tricky.<br />
Yes that can be done easily, just by some configurations in your website cPanel. The steps are:<br />
A. Login to <strong>cPanel</strong><br />
2. Then go to <strong>subdomains</strong>(&#8230; Dont worry u need not add subdomains for all of them individually <img src='http://blog.amanjain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )<br />
3. Now just create a subdomain with name * that is:  <strong>*.yourDomain.ext</strong> and specify a root directory for it.<br />
4. That is all.. Its done..</p>
<p>Now how to get the <strong>subdomain.</strong>. right?</p>
<p>1. Create a file called index.php in the *.yourDomain.ext root.<br />
2. Add the following lines in the file:</p>
<p>&lt;?php<br />
$exp = explode(&#8221;.&#8221;, $_SERVER['HTTP_HOST']) ;<br />
$username = $exp[0];<br />
echo &#8220;Subdomain called: &#8220;. $username;<br />
?&gt;</p>
<p>Now just call any arbitary subdomain.. and see what happens <img src='http://blog.amanjain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amanjain.com/2008/12/virtual-subdomains/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
