Created
August 9, 2012 15:00
-
-
Save avelino/3304942 to your computer and use it in GitHub Desktop.
proxy reverso usando nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream server { | |
server 67.159.35.2; | |
} | |
server { | |
listen 80; | |
server_name avelino.us www.avelino.us; | |
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