Welcome! Log In Create A New Profile


Proxy pass with Regex

Posted by jeffreykky 
Proxy pass with Regex
March 09, 2020 09:16PM
I am trying to use nginx to bypass corp. firewall.
What Im doing is to

location /test/sometext {
proxy_pass http://sometext;

for example

location /test/nginx.org {
proxy_pass http://nginx.org;

This needs to be done by pattern match in order to generalize, but using rewrite method, the url becomes http://nginx.org directly, which my vm has no access to it.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready