Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to host an application, but allow the customer to use their own sub domain so that it does not confuse their own customers.

So for example, by application would run on, but my customer would access it via their own subdomain ( and/or

Is this even possible?

I know it is possible to use wildcards for subdomains in Apache (i.e All requests on *, but can you use wildcards for the whole domain with shared hosting?

(Possibly relevant information: my application is hosted on media temple and uses Apache)


share|improve this question
up vote 2 down vote accepted

You can use mod_rewrite to translate requests from one domain into another, however, take care that you get the SSL case right if that's in the cards. Modern browsers warn when the SSL certificate doesn't match the domain in question, ie they visit and get a certificate valid for instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.