Created
March 15, 2012 06:05
-
-
Save yanyaoer/2042342 to your computer and use it in GitHub Desktop.
just a proxy simple
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
server { | |
resolver 8.8.8.8; | |
access_log off; | |
listen 80 default_server; | |
listen 443 ssl; | |
ssl_certificate /usr/local/nginx/conf/ssl/server.crt; | |
ssl_certificate_key /usr/local/nginx/conf/ssl/server.key; | |
location / { | |
proxy_pass $scheme://$host$request_uri; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_buffers 256 4k; | |
proxy_max_temp_file_size 0k; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment