Page is a not externally linkable
mattdeclaire - 8:46 pm on May 2, 2008 (gmt 0)
So I've got *.matt.dev pointed at my local machine. I would like to have subdomains pointed at directories in my web dir. test.matt.dev would point to I've seen many ways to do this, and have "successfully" done it in the two ways shown below. First: Second: The problem I've run into is that when testing my PHP scripts, the variable So that is my hurdle. Bonus question!
We are starting to set up an internal development environment on our office. We are using the TLD dev locally. We've got DNS routing STDs to individual computers in the office.
My web root is at
RewriteEngine on
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^(.+)\.matt\.dev(.*) /Users/mdeclair/Sites/$1$2
NameVirtualHost *
<VirtualHost *>
ServerName matt.dev
ServerAlias *.matt.dev
VirtualDocumentRoot /Users/mdeclair/Sites/%-3
UseCanonicalName Off
</VirtualHost>
I'd love to have the subdomaining system recursive, such that
hey.dude.matt.dev =>
and furthermore
man.bear.pig.matt.dev => /Users/mdeclair/Sites/pig/bear/man/,
and so on.