nginx.conf配置文件
admin
2023-03-20 00:21:24
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;
    #    }
    #}

}


相关内容

热门资讯

震威科技取得多方位监控摄像设备... 国家知识产权局信息显示,杭州震威科技有限公司取得一项名为“一种多方位监控摄像设备”的专利,授权公告号...
理想境界取得李萨如扫描器专利,... 国家知识产权局信息显示,成都理想境界科技有限公司取得一项名为“一种李萨如扫描器”的专利,授权公告号C...
今日重大消息“全民牛牛怎么装挂... 有 亲,根据资深记者爆料全民牛牛是可以开挂的,确实有挂(咨询软件无需打开...
重磅消息“全民竞技辅助器?”(... 网上科普关于“全民竞技有没有挂”话题很是火热,小编也是针对全民竞技作*弊开挂的方法以及开挂对应的知识...
【第一消息】“拱趴大菠萝可以开... 有 亲,根据资深记者爆料拱趴大菠萝是可以开挂的,确实有挂(咨询软件无需打...
今日重磅消息“好玩茶楼是不是有... 网上科普关于“好玩茶楼有没有挂”话题很是火热,小编也是针对好玩茶楼作*弊开挂的方法以及开挂对应的知识...
今日重大发现“新人海炸/金/花... 有 亲,根据资深记者爆料新人海炸/金/花是可以开挂的,确实有挂(咨询软件...
【第一财经】“TT语音怎么装挂... 您好:TT语音这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这款游戏...
重磅消息“腾讯掼蛋到底是不是挂... 家人们!今天小编来为大家解答腾讯掼蛋透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买很...
我来教教您“欢乐贰柒拾有挂吗?... 家人们!今天小编来为大家解答欢乐贰柒拾透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买...