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?
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?