<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with subdomain</title>
      <link>http://ask.metafilter.com/tags/subdomain</link>
      <description>Questions tagged with 'subdomain' at Ask MetaFilter.</description>
	  <pubDate>Sat, 14 Mar 2009 00:41:20 -0800</pubDate> <lastBuildDate>Sat, 14 Mar 2009 00:41:20 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Why does Apache2 serve a subdomain when given an IP?</title>
	<link>http://ask.metafilter.com/116733/Why%2Ddoes%2DApache2%2Dserve%2Da%2Dsubdomain%2Dwhen%2Dgiven%2Dan%2DIP</link>	
	<description>I have a domain hosted on a VPS running CentOS5. Whenever I enter  http://my-vps-ip in my browser, I get redirected to http://subdomain.mysite.com. 

My limited Google-fu is no match for this particular problem, so I&apos;m hoping the folks at AskMeFi can tell me how I should setup Apache so that http://my-vps-ip goes to http://mysite.com and not the subdomain? Extracts from the httpd.conf file:&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
ServerName mysite.com&lt;br&gt;
...&lt;br&gt;
UseCanonicalName Off&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
conf file defining the subdomain:&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
&amp;lt;virtualhost *:80&amp;gt; &lt;br&gt;
        ServerName      subdomain.mysite.com&lt;br&gt;
        DocumentRoot    /var/www/subdomain&lt;br&gt;
        ErrorLog /var/log/httpd/subdomain_mysite_com-error.log&lt;br&gt;
        CustomLog /var/log/httpd/subdomain_mysite-access.log combined&lt;br&gt;
    &amp;lt;directory&amp;gt; &lt;br&gt;
        Options Indexes FollowSymLinks&lt;br&gt;
        AllowOverride AuthConfig FileInfo Indexes Limit&lt;br&gt;
       Order allow,deny&lt;br&gt;
       Allow from all&lt;br&gt;
     &amp;lt;/directory&amp;gt; &lt;br&gt;
&amp;lt; /virtualhost&amp;gt; &lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
Also, FWIW - currently the rDNS lookup on my VPS IP goes to ns1.mysite.com.&lt;br&gt;
&lt;br&gt;
Many thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.116733</guid>
	<pubDate>Sat, 14 Mar 2009 00:41:20 -0800</pubDate>
	<category>apache</category>
	<category>centos</category>
	<category>resolved</category>
	<category>subdomain</category>
	<category>vps</category>
	<dc:creator>your mildly obsessive average geek</dc:creator>
	</item>
	<item>
	<title>CNAME a domain and delegate the subdomain</title>
	<link>http://ask.metafilter.com/100459/CNAME%2Da%2Ddomain%2Dand%2Ddelegate%2Dthe%2Dsubdomain</link>	
	<description>Can I CNAME a second-level domain, and delegate a subdomain to a nameserver? What if the nameserver is the same for both? So here&apos;s my problem: I have a page at example.freehost.com, and I want to:&lt;br&gt;
1) Buy domain example.com and forward (www.)example.com to example.freehost.com via CNAME.&lt;br&gt;
2) Buy hosting for a subpart of the site (say, forum.example.com), in a host that uses cPanel (which means I should be able to delegate NS for forum.example.com to them).&lt;br&gt;
&lt;br&gt;
The added complication is that I want to buy the domain and the hosting from the same company, which means the nameserver for forum.example.com could end up being the same as the one for example.com&lt;br&gt;
&lt;br&gt;
So, in summary I want to have entries like these:&lt;br&gt;
&lt;br&gt;
example.com             CNAME example.freehost.com&lt;br&gt;
www.example.com    CNAME example.freehost.com&lt;br&gt;
forum.example.com    NS 1.1.1.1&lt;br&gt;
forum.example.com    NS 1.1.1.2&lt;br&gt;
&lt;br&gt;
And on 1.1.1.1 &amp;amp; 1.1.1.2, the normal cpanel entries...&lt;br&gt;
forum.example.com    A [myhostsip]&lt;br&gt;
forum.example.com    MX [myhostsip]&lt;br&gt;
blah blah blah etc etc.&lt;br&gt;
&lt;br&gt;
My first question is - Is that a valid configuration (cnaming the second-level and delegating the third level)&lt;br&gt;
&lt;br&gt;
My second question is: can I have both entries in 1.1.1.1 &amp;amp; 1.1.1.2 (that is, have the NS entry be a self-reference)?&lt;br&gt;
&lt;br&gt;
Or will this self-reference make the internets asplode?&lt;br&gt;
&lt;br&gt;
Also, if I can, will I be able to do it by just managing my DNS entries, and asking the hosting guys to put forum.example.com on cPanel, or will this require some black magic in part of the hosts? (which means they probably won&apos;t do, since I&apos;m aiming for a cheap host)&lt;/myhostsip&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.100459</guid>
	<pubDate>Fri, 29 Aug 2008 13:33:35 -0800</pubDate>
	<category>CNAME</category>
	<category>DNS</category>
	<category>domain</category>
	<category>subdomain</category>
	<dc:creator>qvantamon</dc:creator>
	</item>
	<item>
	<title>Redirecting subdomain to https</title>
	<link>http://ask.metafilter.com/93830/Redirecting%2Dsubdomain%2Dto%2Dhttps</link>	
	<description>I need to redirect all traffic on a subdomain to https instead of http. mod_rewrite is installed, but I don&apos;t know how to use it. So for a couple different subdomains I need to force https in other words I want any requests to: &lt;br&gt;
&lt;br&gt;
http://sub1.example.com&lt;br&gt;
&lt;br&gt;
to go to: &lt;br&gt;
https://sub1.example.com &lt;br&gt;
&lt;br&gt;
I found a couple examples online, but I&apos;m not familiar enough with mod_rewrite and .htaccess files enough to make it work. Help, I&apos;m clueless!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.93830</guid>
	<pubDate>Wed, 11 Jun 2008 14:44:44 -0800</pubDate>
	<category>htaccess</category>
	<category>https</category>
	<category>mod_rewrite</category>
	<category>subdomain</category>
	<dc:creator>The Radish</dc:creator>
	</item>
	<item>
	<title>Drupal and the missing links.</title>
	<link>http://ask.metafilter.com/88461/Drupal%2Dand%2Dthe%2Dmissing%2Dlinks</link>	
	<description>Drupal:  Copying a site to a test site (subdirectory).  The links, they go nowhere! So I followed Drupal&apos;s &lt;a href=&quot;http://drupal.org/upgrade/copying-your-site-via-GUI&quot;&gt;Copying your live site to a test site&lt;/a&gt; documentation.  &lt;br&gt;
&lt;br&gt;
My original site is http://foo.com, and my test site is http://foo.com/test/&lt;br&gt;
&lt;br&gt;
I&apos;ve done the following:&lt;br&gt;
 - copied the contents of public/ to public/test/&lt;br&gt;
 - done an export of the DB, changed the contents of the export so that any reference to foo.com/ now says  foo.com/test/ and done an import to a new DB&lt;br&gt;
 - I&apos;ve added public/sites/foo.com.test/setup.php that points to the new db_url and has foo.com/test as a base_url.  &lt;br&gt;
&lt;br&gt;
I&apos;m able to access the main page of the test site, and when I mouse over a url it will show foo.com/test/example/ but when I click on it, I get a Page Not Found message, but within the drupal theme.  Here&apos;s the interesting part... in the page not found page, all the links are from the main site, not the test site.&lt;br&gt;
&lt;br&gt;
I wonder if .htaccess has something to do with it.  I don&apos;t know much about it but here&apos;s what&apos;s in the .htaccess in  public/ : &lt;br&gt;
&lt;br&gt;
&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br&gt;
  RewriteEngine on&lt;br&gt;
  # Rewrite current-style URLs of the form &apos;index.php?q=x&apos;.&lt;br&gt;
  RewriteCond %{REQUEST_FILENAME} !-f&lt;br&gt;
  RewriteCond %{REQUEST_FILENAME} !-d&lt;br&gt;
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]&lt;br&gt;
&amp;lt;/IfModule&amp;gt;&lt;br&gt;
&lt;br&gt;
I should also mention that I&apos;m using clean urls and Drupal 5.5.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.88461</guid>
	<pubDate>Thu, 10 Apr 2008 13:48:32 -0800</pubDate>
	<category>drupal</category>
	<category>htaccess</category>
	<category>subdirectory</category>
	<category>subdomain</category>
	<dc:creator>Null Pointer and the Exceptions</dc:creator>
	</item>
	<item>
	<title>Setting up subdomains for a LAN?</title>
	<link>http://ask.metafilter.com/82009/Setting%2Dup%2Dsubdomains%2Dfor%2Da%2DLAN</link>	
	<description>How do I give my computers subdomain names on my local network? For example, mylaptop.mynetwork.com, mydesktop.mynetwork.com, momslaptop.mynetwork.com, kids.mynetwork.com and so on?

Do I have to set up some kind of local DNS or is there an easier way to do it in the router?

I am not concerned at this point about being able to access the subdomains from the WAN although that would be handy later. It&apos;s the LAN I&apos;m interested in.

(Obviously I am using Bonjour right now but for I want to use the subdomains too).

I own mynetwork.com and it points to a static IP. 

My LAN router is firewalled behind that. It&apos;s a WRT54G running DD-WRT.

I have a spare computer I could run DNS on but I&apos;d rather not have to do that.

Everything is Macs running OS X, mostly Leopard.




</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2008:site.82009</guid>
	<pubDate>Sat, 26 Jan 2008 07:37:22 -0800</pubDate>
	<category>dd-wrt</category>
	<category>dns</category>
	<category>lostintheweedsofgeekhood</category>
	<category>mac</category>
	<category>os</category>
	<category>subdomain</category>
	<category>wrt54g</category>
	<category>x</category>
	<dc:creator>unSane</dc:creator>
	</item>
	<item>
	<title>How do you make a subdomain forward to a different host?</title>
	<link>http://ask.metafilter.com/76455/How%2Ddo%2Dyou%2Dmake%2Da%2Dsubdomain%2Dforward%2Dto%2Da%2Ddifferent%2Dhost</link>	
	<description>How do you assign a subdomain to a different host? So, here&apos;s an odd situation.&lt;br&gt;
&lt;br&gt;
My brother runs a small charity that has a website at www.mybrotherschairty.org. The site is being hosted for free by a friend of his, but we don&apos;t have much contact with them, and I&apos;m reluctant to ask them for favours. The domain name is registered with Godaddy, and while I have access to domain management there, I don&apos;t have any access to the hosting provider.&lt;br&gt;
&lt;br&gt;
I have been asked to set up a Movable Type blog for the site, but I don&apos;t have permissions to create a new database on our hosting provider, and I don&apos;t want to jam a bunch of tables into the ones we have. Therefore, I have agreed to host the blog at my personal server at www.myserver.net/blog. I have complete control of everything related to my server, including DNS.&lt;br&gt;
&lt;br&gt;
Okay, so what I want to do is to have the subdomain blog.mybrotherschairty.org go to myserver.net/blog. But I want to use masking so that the url doesn&apos;t change for visitors who will have no idea what myserver.net is. Yesterday, I went to Godaddy and added a subdomain though the interface there. However it&apos;s been over 28 hours and nslookup on blog.mybrotherschairty.com still says &quot;no answer&quot;, so I think I need to do something else.&lt;br&gt;
&lt;br&gt;
This should be pretty easy to do, I think, but I have no idea how DNS works, or what a CNAME record is, or how to bake a delicious pie with said record. Please talk to me like I&apos;m an idiot. What, exactly, should I do to make this work?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.76455</guid>
	<pubDate>Fri, 16 Nov 2007 16:07:45 -0800</pubDate>
	<category>alternatehost</category>
	<category>DNS</category>
	<category>forward</category>
	<category>resolved</category>
	<category>subdomain</category>
	<dc:creator>tracert</dc:creator>
	</item>
	<item>
	<title>Help me feed Drupal!</title>
	<link>http://ask.metafilter.com/74599/Help%2Dme%2Dfeed%2DDrupal</link>	
	<description>Can I obtain RSS feeds from Drupal, on more than just the (root) front page, and with a calendar View? When I create a Page content item, I have the option of promoting it to the front page. This appends the content to previous content on the root of the site. An RSS feed icon at the bottom of the page generates a feed from these Page items.&lt;br&gt;
&lt;br&gt;
There is only one front page (that I know of) which sits, again, at the root of the site. I don&apos;t have the option of promoting Pages to other nodes.&lt;br&gt;
&lt;br&gt;
Let&apos;s say I have various &quot;subdomains&quot; with the names &quot;Faculty&quot;, &quot;Undergraduate&quot; and &quot;Graduate&quot;. For a concrete example, &lt;a href=&quot;http://rothko.bio.upenn.edu/&quot;&gt;here&apos;s the test site&lt;/a&gt; on which I&apos;m playing with Drupal.&lt;br&gt;
&lt;br&gt;
Is there a way to make these subdomain nodes the equivalent of a root front page, such that when I add Pages, I can choose to &quot;promote&quot; them to an existing node, and then Drupal will make an RSS feed for me from the Pages on a node?&lt;br&gt;
&lt;br&gt;
Likewise, I am using the Views module to &lt;a href=&quot;http://drupal.org/node/133341&quot;&gt;generate a calendar&lt;/a&gt;. Is there a way to automatically generate, say, per-month RSS feeds from calendar content?&lt;br&gt;
&lt;br&gt;
I am using the Pathauto module to create human-readable aliases to nodes. I don&apos;t know if this complicates anything.&lt;br&gt;
&lt;br&gt;
Thanks for any tips!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2007:site.74599</guid>
	<pubDate>Wed, 24 Oct 2007 19:46:05 -0800</pubDate>
	<category>domain</category>
	<category>drupal</category>
	<category>node</category>
	<category>root</category>
	<category>rss</category>
	<category>subdomain</category>
	<dc:creator>Blazecock Pileon</dc:creator>
	</item>
	<item>
	<title>Can a username redirect to a subdomain?</title>
	<link>http://ask.metafilter.com/45775/Can%2Da%2Dusername%2Dredirect%2Dto%2Da%2Dsubdomain</link>	
	<description>How would I setup a password-protected subdomain where the username is the subdomain?  My levels of incompetence will be further explained, as there is I would like to have a series of subdomains setup for password protection, with the username also being the name of the subdomain.  &lt;br&gt;
&lt;br&gt;
How can I setup a single login screen that takes a given input of username/password and (if a valid username/password combination) redirects to the address http://username.domain.com/?&lt;br&gt;
&lt;br&gt;
For what it&apos;s worth, I will be using a LAMP-style server and have the ability (but not necessarily the skill) to write .htaccess files.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.45775</guid>
	<pubDate>Sat, 02 Sep 2006 09:02:02 -0800</pubDate>
	<category>passwrd</category>
	<category>subdomain</category>
	<category>username</category>
	<dc:creator>jmevius</dc:creator>
	</item>
	<item>
	<title>master of my domain</title>
	<link>http://ask.metafilter.com/42609/master%2Dof%2Dmy%2Ddomain</link>	
	<description>If I want to create sub-sites within my main site, which option is better -- and why? Example: suppose I own http://www.domain.com&lt;br&gt;
&lt;br&gt;
If I want to let a friend set up his own site on my domain, which of the following options would be smarter/wiser/better?&lt;br&gt;
&lt;br&gt;
http://buddy.domain.com&lt;br&gt;
http://www.domain.com/buddy&lt;br&gt;
&lt;br&gt;
Any pointers, reasons, etc, greatly appreciated.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2006:site.42609</guid>
	<pubDate>Thu, 20 Jul 2006 18:35:58 -0800</pubDate>
	<category>domain</category>
	<category>subdomain</category>
	<dc:creator>davidmsc</dc:creator>
	</item>
	<item>
	<title>Redirecting subdomains with mod_rewrite</title>
	<link>http://ask.metafilter.com/22852/Redirecting%2Dsubdomains%2Dwith%2Dmodrewrite</link>	
	<description>A subdomain redirection question (any mod_rewrite experts?) So let&apos;s say that I&apos;m setting up my new site, sports.com.  Here is what I&apos;d like to do:&lt;br&gt;
&lt;br&gt;
When someone visits http://baseball.sports.com, I would like them to be redirected to http://sports.com/index.php?id=baseball (but transparently, so http://baseball.sports.com still appears in their browser).  I would like to do this with several subdomains, but I don&apos;t need to handle *.sports.com (my webhost doesn&apos;t support wildcarded DNS entries anyway).&lt;br&gt;
&lt;br&gt;
I realize I could fake this with frames, but that seems kind of lame.  After wading through tons of .htaccess &amp;amp; mod_rewrite info, I&apos;m more confused than ever.  Can anyone help me pull this off?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2005:site.22852</guid>
	<pubDate>Fri, 19 Aug 2005 16:01:58 -0800</pubDate>
	<category>htaccess</category>
	<category>internet</category>
	<category>mod_rewrite</category>
	<category>redirection</category>
	<category>subdomain</category>
	<category>web</category>
	<dc:creator>subclub</dc:creator>
	</item>
	<item>
	<title>How can other people map their domain names to my subdomains?</title>
	<link>http://ask.metafilter.com/11998/How%2Dcan%2Dother%2Dpeople%2Dmap%2Dtheir%2Ddomain%2Dnames%2Dto%2Dmy%2Dsubdomains</link>	
	<description>How do you do that thing whereby a person can go to your website and map their domain to a subdirectory of your own website? Do you need to have root on your server to do this or are there easier (read: cheaper) ways to do it?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.11998</guid>
	<pubDate>Sat, 20 Nov 2004 13:19:33 -0800</pubDate>
	<category>domain</category>
	<category>domainmapping</category>
	<category>html</category>
	<category>programming</category>
	<category>subdirectory</category>
	<category>subdomain</category>
	<category>webmap</category>
	<category>webprogramming</category>
	<dc:creator>subverted</dc:creator>
	</item>
	<item>
	<title>Good free subdomain hosts?</title>
	<link>http://ask.metafilter.com/5406/Good%2Dfree%2Dsubdomain%2Dhosts</link>	
	<description>A &lt;a href=&quot;http://ask.metafilter.com/mefi/4940&quot;&gt;permutation&lt;/a&gt; of this question has been asked previously, but I&apos;m wondering if anyone has any experience with &lt;u&gt;free&lt;/u&gt; subdomain hosts.  I need to run a forum-type (probably YaBBS-based) site for next eight months only, so I don&apos;t need a yearly package and I&apos;d prefer to not spend a dime if possible, but I don&apos;t want it littered with pop-ups and banners either.  Ideas or leads?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2004:site.5406</guid>
	<pubDate>Mon, 23 Feb 2004 13:22:55 -0800</pubDate>
	<category>free</category>
	<category>host</category>
	<category>hosting</category>
	<category>subdomain</category>
	<dc:creator>grabbingsand</dc:creator>
	</item>
	
	</channel>
</rss>

