Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 #user  nobody;
0003 worker_processes  1;
0004 
0005 #error_log  logs/error.log;
0006 #error_log  logs/error.log  notice;
0007 #error_log  logs/error.log  info;
0008 
0009 #pid        logs/nginx.pid;
0010 
0011 
0012 events {
0013     worker_connections  1024;
0014 }
0015 
0016 
0017 http {
0018     include       mime.types;
0019     default_type  application/octet-stream;
0020 
0021     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
0022     #                  '$status $body_bytes_sent "$http_referer" '
0023     #                  '"$http_user_agent" "$http_x_forwarded_for"';
0024 
0025     #access_log  logs/access.log  main;
0026 
0027     sendfile        on;
0028     #tcp_nopush     on;
0029 
0030     #keepalive_timeout  0;
0031     keepalive_timeout  65;
0032 
0033     #gzip  on;
0034 
0035     server {
0036         listen       80;
0037         server_name  localhost;
0038 
0039         #charset koi8-r;
0040 
0041         #access_log  logs/host.access.log  main;
0042 
0043         location / {
0044             root   html;
0045             index  index.html index.htm;
0046         }
0047 
0048         #error_page  404              /404.html;
0049 
0050         # redirect server error pages to the static page /50x.html
0051         #
0052         error_page   500 502 503 504  /50x.html;
0053         location = /50x.html {
0054             root   html;
0055         }
0056 
0057         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
0058         #
0059         #location ~ \.php$ {
0060         #    proxy_pass   http://127.0.0.1;
0061         #}
0062 
0063         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
0064         #
0065         #location ~ \.php$ {
0066         #    root           html;
0067         #    fastcgi_pass   127.0.0.1:9000;
0068         #    fastcgi_index  index.php;
0069         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
0070         #    include        fastcgi_params;
0071         #}
0072 
0073         # deny access to .htaccess files, if Apache's document root
0074         # concurs with nginx's one
0075         #
0076         #location ~ /\.ht {
0077         #    deny  all;
0078         #}
0079     }
0080 
0081 
0082     # another virtual host using mix of IP-, name-, and port-based configuration
0083     #
0084     #server {
0085     #    listen       8000;
0086     #    listen       somename:8080;
0087     #    server_name  somename  alias  another.alias;
0088 
0089     #    location / {
0090     #        root   html;
0091     #        index  index.html index.htm;
0092     #    }
0093     #}
0094 
0095 
0096     # HTTPS server
0097     #
0098     #server {
0099     #    listen       443 ssl;
0100     #    server_name  localhost;
0101 
0102     #    ssl_certificate      cert.pem;
0103     #    ssl_certificate_key  cert.key;
0104 
0105     #    ssl_session_cache    shared:SSL:1m;
0106     #    ssl_session_timeout  5m;
0107 
0108     #    ssl_ciphers  HIGH:!aNULL:!MD5;
0109     #    ssl_prefer_server_ciphers  on;
0110 
0111     #    location / {
0112     #        root   html;
0113     #        index  index.html index.htm;
0114     #    }
0115     #}
0116 
0117 }