Help - Search - Members - Calendar
Full Version: forward all possible subdomains ?
The Planet Forums > System Administration > Server Hardware > RaQ Support
XboxCenter
I just got my RackShack server and I have a lot of domains (were expired domains) that at one time had a lot of sub-domains.

I put a separate A Name entry for each sub domain and then under account management, put the sub domain aliases.

This worked fine, but some of these names have many hundred links in search engines and 6 or more sub-domains.

Is there a way to do an anonymous sub-domain so that anything.mydomain.com comes to the web site?

- Steve
rackAID
Yes, you need to set up a DNS wildcard and then edit httpd.conf to remove the various Rewrites.
Wildcard:
*.domain.com
will get redirected to any subdomain.
XboxCenter
Thanks Huck,

but wat exactly does "to remove the various Rewrites" mean?

I should only need to add one A Name: *.domain

Do you mean I would have to go into the file and edit something everytime I use this?

How do I set up the DNS wildcard? I did try that and it told me * was an invalid host.

What do I edit in the httpd.conf file?

- Steve
rackAID
You will not be able to do this through the Raq CP interface. I think it traps * and other types of characters preventing from being added to your DNS. Your DNS should be able to support wildcards. By adding *.domain.com you can get anycrazyhostnameyouwant.domain.com to work transparently.

Also, there are RewriteRules in the httpd.conf that will redirect anything.domain.com to www.domain.com. You may not want this. To prevent this, comment out those lines in httpd.conf.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.