탈

alpn 추가 해보았습니다.~

· 2018-01-05 (금) 13:01:28 · 954 · 3

https://z9n.net/

 

[code]

server {
    listen       443 ssl http2;
    server_name  z9n.net www.z9n.net z9in.net www.z9in.net;
    root    /home/c9;

    ssl_certificate "/etc/letsencrypt/live/z9n.net/fullchain.pem";
    ssl_certificate_key "/etc/letsencrypt/live/z9n.net/privkey.pem";
    ssl_dhparam "/etc/ssl/certs/dhparam.pem";
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

    # Enable HSTS. This forces SSL on clients that respect it, most modern browsers. The includeSubDomains flag is optional.
    add_header Strict-Transport-Security "max-age=31536000";

    location / {
        index  index.php index.html;
    }

    #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   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        if (!-f $document_root$fastcgi_script_name) {
            return 404;
        }
        #proxy_pass   http://127.0.0.1;
        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }


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

[/code]

|

댓글 3개

listen 443 ssl;
이렇게만 설정 되면 불이 안들어 오더라구요 ㅎㅎ
@terrorboy http2 가 있어야지요....ㅎㅎ
@亞波治 예전 부터 쓰던거라 ㅎㅎㅎ
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

203,044건
+
제목 글쓴이 날짜 조회
18-01-05 조회 1,396
18-01-05 조회 1,343
18-01-05 조회 1,138
18-01-05 조회 1,076
18-01-05 조회 1,206
18-01-05 조회 1,337
18-01-05 조회 2,058
18-01-05 조회 1,311
18-01-05 조회 1,507
18-01-05 조회 2,354
18-01-05 조회 1,455
18-01-05 조회 955
18-01-05 조회 1,337
18-01-05 조회 1,285
18-01-05 조회 1,368
18-01-05 조회 1,307
18-01-05 조회 1,553
18-01-05 조회 1,388
18-01-05 조회 1,310
18-01-05 조회 920