4 error_log log/error.log;
10 worker_connections 1024;
17 default_type application/octet-stream;
19 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
20 '$status $body_bytes_sent "$http_referer" '
21 '"$http_user_agent" "$http_x_forwarded_for"';
24 client_body_temp_path temp 1 2;
25 proxy_temp_path temp 1 2;
26 fastcgi_temp_path temp 1 2;
27 uwsgi_temp_path temp 1 2;
28 scgi_temp_path temp 1 2;
30 access_log log/access.log main;
42 server_name localhost;
48 #access_log /var/log/nginx/host.access.log main;
52 index index.html index.htm;
56 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
57 fastcgi_param QUERY_STRING $query_string;
58 fastcgi_param REQUEST_METHOD $request_method;
59 fastcgi_param CONTENT_TYPE $content_type;
60 fastcgi_param CONTENT_LENGTH $content_length;
62 fastcgi_param SCRIPT_NAME $fastcgi_script_name;
63 fastcgi_param REQUEST_URI $request_uri;
64 fastcgi_param DOCUMENT_URI $document_uri;
65 fastcgi_param DOCUMENT_ROOT $document_root;
66 fastcgi_param SERVER_PROTOCOL $server_protocol;
67 fastcgi_param REQUEST_SCHEME $scheme;
68 fastcgi_param HTTPS $https if_not_empty;
69 fastcgi_param HTTP_AUTHORIZATION $http_authorization;
71 fastcgi_param GATEWAY_INTERFACE CGI/1.1;
72 fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
74 fastcgi_param REMOTE_ADDR $remote_addr;
75 fastcgi_param REMOTE_PORT $remote_port;
76 fastcgi_param SERVER_ADDR $server_addr;
77 fastcgi_param SERVER_PORT $server_port;
78 fastcgi_param SERVER_NAME $server_name;
80 fastcgi_intercept_errors off;
81 fastcgi_pass_header "Status";
82 fastcgi_pass_header "Status-Code";
83 include fcgisock.conf;
86 #error_page 404 /404.html;
88 # redirect server error pages to the static page /50x.html
90 error_page 500 502 503 504 /50x.html;
91 location = /50x.html {
92 root /srv/www/htdocs/;
95 # deny access to .htaccess files, if Apache's document root
96 # concurs with nginx's one