testing/PlaceholderTest/nginx/default.conf

22 lines
493 B
Plaintext
Raw Permalink Normal View History

server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
location ~ ^(.*)$ {
root /usr/share/nginx/html/;
try_files $1 /index.html ;
}
rewrite ^.*$ /index.html;
root /usr/share/nginx/html/;
index index.html;
# TODO: figure out how to make the favicon show anyway
# location = /favicon.ico { access_log off; log_not_found off; }
location ~ ^.*$ {
try_files $uri $uri/ /index.html ;
}
}