Thread: Mod_rewrite
View Single Post
Old 06-17-2008, 06:30 PM   #7 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

You'll have to update your zone DB file to include something like this:

Code:
*.mysite.com. 14400 IN A 12.345.67.890
...where mysite is your domain and 12.34... is your IP, and then you need to add two directives to your <VirtualHost> configuration in httpd.conf, such as;

Code:
ServerAlias *.mysite.com
RedirectMatch 301 (.*) http://mysite.com$1
-m
delayedinsanity is offline  
Reply With Quote