nginx_源码版_nginx.conf
admin
2023-03-17 17:21:22
0
#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }


    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}


    # HTTPS server
    #
    #server {
    #    listen       443 ssl;
    #    server_name  localhost;

    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_cache    shared:SSL:1m;
    #    ssl_session_timeout  5m;

    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers  on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}


上一篇:docker 加速器

下一篇:samba 配置使用详解

相关内容

热门资讯

今日重大通报“青鸾拼三张辅助器... 家人们!今天小编来为大家解答青鸾拼三张透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买...
我来教教您“西南互娱可以开挂吗... 您好:西南互娱这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...
终于了解“闽游麻将真的有挂吗?... 家人们!今天小编来为大家解答闽游麻将透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很...
最新引进“攒劲甘肃麻将有没有挂... 有 亲,根据资深记者爆料攒劲甘肃麻将是可以开挂的,确实有挂(咨询软件无需...
【第一资讯】“王子棋牌到底有挂... 您好:王子棋牌这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...
【第一财经】“胡一把麻将有没有... 网上科普关于“胡一把麻将有没有挂”话题很是火热,小编也是针对胡一把麻将作*弊开挂的方法以及开挂对应的...
重磅消息“毛豆大厅拼三张辅助器... 有 亲,根据资深记者爆料毛豆大厅拼三张是可以开挂的,确实有挂(咨询软件无...
最新引进“乐游510k是不是有... 家人们!今天小编来为大家解答乐游510k透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里...
终于懂了“超稳炸/金/花开挂神... 网上科普关于“超稳炸/金/花有没有挂”话题很是火热,小编也是针对超稳炸/金/花作*弊开挂的方法以及开...
我来教教您“开心游戏辅助器?”... 有 亲,根据资深记者爆料开心游戏是可以开挂的,确实有挂(咨询软件无需打开...