V
V
Vasily Angapov2013-04-09 08:37:45
Nginx
Vasily Angapov, 2013-04-09 08:37:45

Nginx reverse proxy and 302 redirect?

Hello. I don't know much about web servers, so I'm asking a question here.
There is an nginx reverse proxy at proxy.com , as well as several sites on different physical servers that are served through this proxy, i.e. to addresses like proxy.com/mail , proxy.com/forum , proxy.com/www and so on...
But on one of the sites (which I don't control or administer in any way) there is a 302 redirect to another-domain.com and Naturally, when users enter proxy.com/my-site , they redirect to another-domain.com , and not to proxy.com/my-site/ (....), as I want, in fact!
It is not possible to remove 302 redirects for numerous reasons. Question: is it possible to somehow make this site open just as a subsection of the main site.
I'm sorry if I misunderstood somewhere, I hope you understand what I'm talking about ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DwINS, 2013-04-09
@DwINS

Use proxy_redirect as an option.
You can read more for example here

V
Vasily Angapov, 2013-04-09
@celebrate

It seems I tried it, now I'll read the link, thanks!
What's the downside for? )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question