blob: 12db6c26937dc0630d3150aad9a4dc84f966e07e (
plain)
1 #
2 # /etc/nginx/nginx.conf
3 #
4
5 user nginx;
6 worker_processes 4;
7
8 error_log /var/log/nginx/error.log info;
9
10 events {
11 worker_connections 4096;
12 }
13
14 http {
15 include /etc/nginx/mime.types;
16 default_type application/octet-stream;
17
18 access_log /var/log/nginx/access.log combined;
19
20 gzip on;
21 #tcp_nopush on;
22 sendfile on;
23
24 keepalive_timeout 65;
25
26 #passenger_root /usr/share/nginx/passenger;
27
28 server {
29 listen 80;
30 server_name localhost;
31 location / {
32 root html;
33 index index.html index.htm;
34 }
35 error_page 404 /404.html;
36
37 # redirect server error pages to the static page /50x.html
38 error_page 500 502 503 504 /50x.html;
39 location = /50x.html {
40 root html;
41 }
42
43 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
44 #
45 #location ~ \.php$ {
46 # proxy_pass http://127.0.0.1;
47 #}
48 #
49 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
50 #
51 #location ~ \.php$ {
52 # fastcgi_pass 127.0.0.1:9000;
53 # fastcgi_index index.php;
54 # include fastcgi_params;
55 # fastcgi_param SCRIPT_FILENAME /srv/www/nginx/html$fastcgi_script_name;
56 #}
57 #
58 # deny access to .htaccess files, if Apache's document root
59 # concurs with nginx's one
60 #
61 #location ~ /\.ht {
62 # deny all;
63 #}
64 }
65
66
67 # another virtual host using mix of IP-, name-, and port-based configuration
68 #
69 #server {
70 # listen 8000;
71 # listen somename:8080;
72 # server_name somename alias another.alias;
73 #
74 # location / {
75 # root html;
76 # index index.html index.htm;
77 # }
78 #}
79
80
81 # HTTPS server
82 #
83 #server {
84 # listen 443;
85 # server_name localhost;
86 #
87 # ssl on;
88 # ssl_certificate cert.pem;
89 # ssl_certificate_key cert.key;
90 #
91 # ssl_session_timeout 5m;
92 #
93 # ssl_protocols SSLv2 SSLv3 TLSv1;
94 # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
95 # ssl_prefer_server_ciphers on;
96 #
97 # location / {
98 # root html;
99 # index index.html index.htm;
100 # }
101 #}
102
103 }
104
105 # End of file
|