Answer the question
In order to leave comments, you need to log in
Nginx not working with http/2?
https://www.digitalocean.com/community/tutorials/h...
Nginx 1.10.3, ssl from Lets Encrypt. I installed everything, set it up, check the protocol, it shows that it uses http/1.1 .
I tried to clear the cache, incognito in chrome is still the same, checked in mozilla, still the same, uses http 1.
https://tools.keycdn.com/http2-test
Indicates that the server supports http2.
https://http2.akamai.com/demo
Indicates that This browser is not HTTP/2 enabled.
https://www.ssllabs.com/ssltest
Checked, by IPV4 and IPV6 = Grade A
Windows 10 Pro, Eset Internet Security.
openssl version
OpenSSL 1.1.0f 25 May 2017
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
root /var/www/my_domain_name/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name my_domain_name.com;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ [^/]\.php(/|$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
ssl_certificate /etc/letsencrypt/live/my_domain_name.com/fullchain.pem; # managed by Ce$
ssl_certificate_key /etc/letsencrypt/live/my_domain_name.com/privkey.pem; # managed by $
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
# redirects simple port 80 to https + http2
server {
listen 80;
listen [::]:80;
server_name my_domain_name.com;
return 301 https://$server_name$request_uri;
}
#redirect IP droplet to domain name
server {
listen 80;
server_name 178.******;
return 301 https://$server_name$request_uri;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question