Skip to content

Instantly share code, notes, and snippets.

@marzocchi
Created November 23, 2012 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzocchi/4137750 to your computer and use it in GitHub Desktop.
Save marzocchi/4137750 to your computer and use it in GitHub Desktop.
nginx.conf
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