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

Proxy pass with Regex

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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