nginx 基本配置,代理websocket有错误

server {

        listen 80 default_server;

        listen 443 ssl;

        server_name www.slimgirl.club;

        #ssl on;

        ssl_certificate /etc/nginx/1_www.slimgirl.club_bundle.crt;

        ssl_certificate_key /etc/nginx/2_www.slimgirl.club.key;

        ssl_session_timeout 5m;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;

        ssl_prefer_server_ciphers on;

        location / {

            root  /var/www/html;

            index  index.html index.htm;

        }

    }

你可能感兴趣的:(nginx 基本配置,代理websocket有错误)