Created
October 11, 2011 14:50
-
-
Save jakab922/1278286 to your computer and use it in GitHub Desktop.
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
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { | |
server { | |
listen 80; | |
server_name 127.0.0.1; | |
access_log /var/log/nginx/liferes-access.log; | |
location /media/ { | |
root /var/www/sites/liferes; | |
} | |
location /static/ { | |
root /var/www/sites/liferes; | |
} | |
location / { | |
fastcgi_pass 127.0.0.1:8801; | |
fastcgi_param PATH_INFO $fastcgi_script_name; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param SERVER_NAME $server_name; | |
fastcgi_param SERVER_PORT $server_port; | |
fastcgi_param SERVER_PROTOCOL $server_protocol; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_pass_header Authorization; | |
fastcgi_intercept_errors off; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment