当前位置: > Linux服务器 > nginx >

“nginx + django runfcgi”情况下的nginx配置文件

时间:2017-03-05 16:17来源:linux.it.net.cn 作者:IT
server { 
    listen 192.168.xx.xx; 
    access_log  /var/log/nginx/django.log; 
 
    location / { 
        # host and port to fastcgi server 
        fastcgi_pass 127.0.0.1:8000; 
        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_param REMOTE_ADDR $remote_addr; 
        fastcgi_param SERVER_PROTOCOL $server_protocol; 
        fastcgi_param SERVER_PORT $server_port; 
        fastcgi_param SERVER_NAME $server_name; 
        fastcgi_intercept_errors off; 
    } 
}   (责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容