14 lines
333 B
Plaintext
14 lines
333 B
Plaintext
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name forms.libraryofcode.org;
|
|
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
|
|
root /var/www/forms;
|
|
|
|
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
|
try_files $uri.html $uri/ $uri =404;
|
|
}
|