alpn 추가 해보았습니다.~ 정보
alpn 추가 해보았습니다.~
본문
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;
}
}
추천
0
0
댓글 3개

listen 443 ssl;
이렇게만 설정 되면 불이 안들어 오더라구요 ㅎㅎ
이렇게만 설정 되면 불이 안들어 오더라구요 ㅎㅎ

@terrorboy http2 가 있어야지요....ㅎㅎ

@亞波治 예전 부터 쓰던거라 ㅎㅎㅎ