Created
July 27, 2012 23:40
-
-
Save guerrerocarlos/3191069 to your computer and use it in GitHub Desktop.
NGINX config file for fastcgi Django app
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
server{ | |
server_name www.ejemplo.net ejemplo.net; | |
location / { | |
# host y puerto para servicio fastcgi | |
fastcgi_pass 127.0.0.1:8080; | |
fastcgi_param PATH_INFO $fastcgi_script_name; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_pass_header Authorization; | |
fastcgi_intercept_errors off; | |
fastcgi_param REMOTE_ADDR $remote_addr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment