proxy_pass
February 23, 2015 01:07AM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready