nginx 配置文件

下列是nginx.conf全局配置文件


worker_processes  1;

 

error_log  /tmp/logs/nginx-error.log;

 

events {

    worker_connections  1024;

}

 

 

http {

    include       mime.types;

    default_type  application/octet-stream;

    access_log  /tmp/logs/nginx-access.log;

 

    sendfile        on;

    keepalive_timeout  65;

 

    server {

        listen       80;

        server_name  localhost;

 

 

        location / {

            root   html;

            index  index.html index.htm;

        }

 

        error_page   500 502 503 504  /50x.html;

        location = /50x.html {

            root   html;

        }

 

    }

 

    include /usr/local/etc/nginx/sites-enabled/*.conf;

}

 

posted @ 2016-04-05 14:51  秋风落叶.  阅读(126)  评论(0编辑  收藏  举报