小编Shr*_*nil的帖子

/etc/nginx/sites-enabled/app:2 nginx 中不允许使用“map”指令:配置文件 /etc/nginx/nginx.conf 测试失败

用户www-数据;自动worker_processes;pid /run/nginx.pid;

events {
        worker_connections 768;
        # multi_accept on;
}

http {
        # this section is needed to proxy web-socket connections
        map $http_upgrade $connection_upgrade {
                default upgrade;
                  ''      close;
        }

        ##
        # Basic Settings
        ##

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        # server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ##
        # SSL Settings
        ##

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        ##
        # Logging Settings
        ##

        access_log …
Run Code Online (Sandbox Code Playgroud)

nginx meteor ubuntu-14.04

5
推荐指数
0
解决办法
9301
查看次数

标签 统计

meteor ×1

nginx ×1

ubuntu-14.04 ×1