Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 app.mydomain.com, but my customer would access it via their own subdomain (app.somedomain.com and/or app.anotherdomain.com).

Is this even possible?

I know it is possible to use wildcards for subdomains in Apache (i.e All requests on *.mydomain.com), 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)

Thanks!

share|improve this question

1 Answer 1

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 app.somedomain.com and get a certificate valid for app.mydomain.com instead.

share|improve this answer

Your Answer

 
discard

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.