configurations/Nginx/Server Blocks/forms.libraryofcode.org.conf

14 lines
333 B
Plaintext
Raw Permalink Normal View History

2021-05-01 15:13:49 -04:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name forms.libraryofcode.org;
2021-05-01 16:25:44 -04:00
2021-05-01 15:13:49 -04:00
ssl_certificate /etc/nginx/ssl/org.chain.crt;
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
root /var/www/forms;
2022-02-15 00:26:44 -05:00
2021-05-01 15:13:49 -04:00
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
try_files $uri.html $uri/ $uri =404;
}