Imported Upstream version 17.22.1
[platform/upstream/libzypp.git] / tests / data / nginxconf / nginx.conf
1 daemon off;
2 worker_processes  1;
3
4 error_log log/error.log;
5 pid server.pid;
6
7 include user.conf;
8
9 events {
10     worker_connections  1024;
11     use epoll;
12 }
13
14
15 http {
16     include       mime.types;
17     default_type  application/octet-stream;
18
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"';
22
23
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;
29
30     access_log  log/access.log  main;
31
32     sendfile        on;
33     #tcp_nopush     on;
34
35     #keepalive_timeout  0;
36     keepalive_timeout  65;
37
38     #gzip  on;
39
40     server {
41         include port.conf;
42         server_name  localhost;
43
44         include ssl.conf;
45
46         #charset koi8-r;
47
48         #access_log  /var/log/nginx/host.access.log  main;
49
50         location / {
51             include srvroot.conf;
52             index  index.html index.htm;
53         }
54
55         location /handler {
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;
61
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;
70
71             fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
72             fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;
73
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;
79
80             fastcgi_intercept_errors off;
81             fastcgi_pass_header "Status";
82             fastcgi_pass_header "Status-Code";
83             include fcgisock.conf;
84         }
85
86         #error_page  404              /404.html;
87
88         # redirect server error pages to the static page /50x.html
89         #
90         error_page   500 502 503 504  /50x.html;
91         location = /50x.html {
92             root   /srv/www/htdocs/;
93         }
94
95         # deny access to .htaccess files, if Apache's document root
96         # concurs with nginx's one
97         #
98         location ~ /\.ht {
99             deny  all;
100         }
101     }
102 }