Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have a website hosted at and a client that wants to point a subdomain of his to our website.

i.e. if someone visits, then this automatically points to

This shouldn't be done via a redirect - i.e we want a visitor to to remain on that url, even if they navigate further into the site.

I'm not sure if this is even possible.

share|improve this question
up vote 0 down vote accepted

Your search term is "reverse proxy".

This will need to be configured on the web server of the client.

An Apache configuration would look something like:

ProxyPass        /
ProxyPassReverse /

An nginx configuration would look something like:

server {
  location / {
    proxy_pass ;

Of course, what you wind up with will be determined by the client's server software, plus whatever would need to be done with those configuration options, including other directives to pass HTTP headers along, etc.

share|improve this answer

I'm pretty sure what you want can be achieved with a reverse proxy setup. For example, Apache uses mod_proxy to achieve this.

There are also many sites on the web that explain in detail how to set up a reverse proxy. I just can't really recommend a specific one.

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.