Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Reverse proxy redirect to postfix in URL

$
0
0
Hi

I'm completely new to Nginx and haven't had any success setting up the reverse proxy. What I need to do is redirect URLs of the form http://abcproxy.com/foo/bar to http://foo/bar. What I have right now is
server {
server_name abcproxy.com;
location / {
rewrite ^ scheme:/$uri? redirect;
}
}

I would really appreciate some help in setting this up.

Thanks

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>