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 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 www.example.com/support 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

2 Answers 2

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

 
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.