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

proxy_pass

$
0
0
Hi,

I'm new on nginx, but I don't find answer to my problem in the documentation:

for my BC, I would like to be redirected to another webserver like this:

if I enter http://www.example.com/my_other_server.com, I would like to be on http://my_other_server.com.

have try some simple things with proxy_pass and rewrite rule:

location /somewhere {
rewrite ^/somewhere/(.*) /somewhere/$1 break;
proxy_pass http://$1;
}

Any use case or documentation link about the same issue?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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