Created
November 23, 2012 23:53
-
-
Save marzocchi/4137750 to your computer and use it in GitHub Desktop.
nginx.conf
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
daemon off; | |
http { | |
proxy_cache_path /usr/local/var/cache/nginx keys_zone=anon:10m; | |
server { | |
listen 8888; | |
server_name foo; | |
location / { | |
proxy_pass http://127.0.0.1:80; | |
proxy_cache anon; | |
proxy_set_header X-Forwarded-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
} | |
} | |
} | |
events { | |
worker_connections 1024; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment