Create a gist now

Instantly share code, notes, and snippets.

proxy reverso usando nginx
upstream server {
server {
listen 80;
location / {
proxy_cache proxy-cache;
proxy_cache_key "$host$request_uri$args";
proxy_ignore_headers "Cache-Control" "Expires";
proxy_cache_min_uses 1;
proxy_hide_header Set-Cookie;
proxy_cache_valid 200 301 302 30m;
proxy_cache_valid any 0m;
proxy_buffering on;
proxy_pass http://server;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment