<?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>InstaCarma Blog &#187; sub-domain</title>
	<atom:link href="http://www.instacarma.com/blog/tag/sub-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Sat, 10 Mar 2012 21:44:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Putting add-on domains on dedicated IPs</title>
		<link>http://www.instacarma.com/blog/technical/putting-add-on-domains-on-dedicated-ips/</link>
		<comments>http://www.instacarma.com/blog/technical/putting-add-on-domains-on-dedicated-ips/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 22:13:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[sub-domain]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=630</guid>
		<description><![CDATA[Filed under: sub-domain Issue : The main domain and the add-on domains need to be on different dedicated IPs. Fix : This cannot be done directly through cPanel/WHM . If suppose your cPanel account username is &#8220;USER&#8221; and domains are: maindomain.tld addondomain1.tld addondomain2.tld Then you have to edit the following files using vim or pico [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/sub-domain/'>sub-domain</a></p>
<p><strong>Issue : </strong></p>
<p>The main domain and the add-on domains need to be on different dedicated IPs.</p>
<p><strong>Fix : </strong></p>
<p>This cannot be done directly through cPanel/WHM .<br />
If suppose your cPanel account username is &#8220;USER&#8221; and domains are:</p>
<p>maindomain.tld<br />
addondomain1.tld<br />
addondomain2.tld</p>
<p>Then you have to edit the following files using vim or pico editor : </p>
<p>/var/cpanel/userdata/USER/maindomain.tld<br />
/var/cpanel/userdata/USER/subdomain1.maindomain.tld<br />
/var/cpanel/userdata/USER/subdomain2.maindomain.tld</p>
<p>And change the IP field to in each to your desired one.<br />
Then you have to rebuild apache using <em>/scripts/rebuildhttpdconf</em><br />
Restart apache service.<br />
Edit DNS zone file of each domain and point A record to the new IP. </p>
<p>That should be it! All your domains should work flawlessly and you should also be able to install SSL , if required.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/putting-add-on-domains-on-dedicated-ips/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/putting-add-on-domains-on-dedicated-ips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to redirect webmail.domain.tld to domain.tld/webmail</title>
		<link>http://www.instacarma.com/blog/technical/how-to-redirect-webmail-domain-tld-to-domain-tldwebmail/</link>
		<comments>http://www.instacarma.com/blog/technical/how-to-redirect-webmail-domain-tld-to-domain-tldwebmail/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 18:38:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[sub-domain]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=560</guid>
		<description><![CDATA[Filed under: email, redirect, sub-domain, webmail Issue : webmail.domain.tld does not work. Fix : 1. Create an &#8216;A&#8217; record for the sub-domain &#8216;webmail&#8217; in the DNS zone file. It should look like : domain.com. IN A XX.XX.XXX.XXX localhost.domain.com. IN A 127.0.0.1 domain.com. IN MX 0 domain.com. mail IN CNAME domain.com. www IN CNAME domain.com. ftp [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/email/'>email</a>, <a href='http://www.instacarma.com/blog/tag/redirect/'>redirect</a>, <a href='http://www.instacarma.com/blog/tag/sub-domain/'>sub-domain</a>, <a href='http://www.instacarma.com/blog/tag/webmail/'>webmail</a></p>
<p><strong>Issue :</strong></p>
<p><em>webmail.domain.tld</em> does not work.<br />
<strong><br />
Fix :</strong></p>
<p>1. Create an &#8216;A&#8217; record for the sub-domain &#8216;webmail&#8217; in the DNS zone file. It should look like :</p>
<blockquote><p>domain.com. IN A XX.XX.XXX.XXX<br />
localhost.domain.com. IN A 127.0.0.1<br />
domain.com. IN MX 0 domain.com.<br />
mail IN CNAME domain.com.<br />
www IN CNAME domain.com.<br />
ftp IN A XX.XX.XXX.XXX<br />
cpanel IN XX.XX.XXX.XXX<br />
whm IN A XX.XX.XXX.XXX<br />
<strong>webmail IN A XX.XX.XXX.XXX</strong><br />
webdisk IN A XX.XX.XXX.XXX
</p></blockquote>
<p>2. Put the following code inside <em>.htaccess</em> in the sub-domain folder ( virtual sub-domain which doesn&#8217;t have an entry in httpd.conf</p>
<blockquote><p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]<br />
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$<br />
RewriteRule ^.*$ “http\:\/\/domain\.com\/webmail” [R=301,L]</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/how-to-redirect-webmail-domain-tld-to-domain-tldwebmail/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/how-to-redirect-webmail-domain-tld-to-domain-tldwebmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

