According to this answer, the directive:
try_files $uri.html $uri/ =404;
Is supposed to make it so that
only one copy of the resource is served (that with no .html extension)
However, I have this directive in my config:
server {
listen 443 ssl default_server;
listen [::]:443 ssl;
server_name waynewerner.com www.waynewerner.com;
ssl_certificate /etc/letsencrypt/live/www.waynewerner.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.waynewerner.com/privkey.pem;
index index.html;
root /var/www/waynewerner.com/site/;
try_files $uri.html $uri/ =404;
location ^~ /blog {
alias /usr/share/blog/output;
break;
}
location /.well-known {
allow all;
root /var/www/;
}
location /.hg {
deny all;
return 404;
}
}
But you'll notice that you can go to both:
(At least that's how they appear in my Google Chrome address bar).
Is this something to worry about, or is Nginx doing the right thing?
0 Answers