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 support system installed with a different hoster and want the address from my web application to contain a link to that support system. However, the domain name I registered together with this support system is completely unrelated to the name of my web application and might confuse people.

Is it possible to enter a link like and then have nginx redirect to the designated domain without changing the address line itself?

I tried rewrite, but it completely redirects you.

share|improve this question
up vote 2 down vote accepted

You can try proxying it, but this is just a tip, I haven't tried it yet.

location / {
  proxy_pass        http://desired_domain;
  proxy_set_header  X-Real-IP  $remote_addr;

  # original host uses built-in $host variable, replace it with desired name
  # proxy_set_header Host $host;
  proxy_set_header  Host       desired_hostname;
share|improve this answer

Use frames. frameset hosted on your machine with one frame inside pulling contents From URL you want to hide.

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.