Nginx proxy cache (proxy_pass $request_uri;)
- by imastar
I need to create proxy web using nginx.
If I access http://myweb.com/http://www.target.com/
the proxy_pass should be http://www.target.com/
Here is my configuration:
location / {
proxy_pass $request_uri;
proxy_cache_methods GET;
proxy_set_header Referer "$request_uri";
proxy_redirect off;
proxy_set_header X-Real-IP…