Created
March 23, 2012 05:59
-
-
Save cantremember/2167469 to your computer and use it in GitHub Desktop.
nginx proxy example
This file contains hidden or 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
# can't set this here! | |
###proxy_redirect default; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
#client_max_body_size 10m; | |
#client_body_buffer_size 128k; | |
proxy_connect_timeout 15; | |
proxy_send_timeout 90; | |
proxy_read_timeout 30; | |
# turn off for Comet! | |
proxy_buffering on; | |
proxy_buffers 32 8k; | |
proxy_ignore_client_abort on; | |
# for caching, via Last-Modified: | |
#proxy_store on; | |
#proxy_store_access user:rw group:rw all:r; | |
#proxy_temp_path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment