We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195a6af commit 333ccdcCopy full SHA for 333ccdc
nginx.conf
@@ -1,6 +1,5 @@
1
server {
2
- listen 80;
3
- server_name localhost;
+ listen 80 default_server;
4
5
gzip on;
6
gzip_min_length 1000;
@@ -13,14 +12,14 @@ server {
13
12
# e.g. /, /user and /foo/bar will return index.html
14
location / {
15
add_header Cache-Control "no-store";
16
- try_files $uri $uri/ /index.html;
+ try_files $uri $uri/index.html /index.html;
17
}
18
19
# files
20
# for all routes matching a dot, check for files and return 404 if not found
21
# e.g. /file.js returns a 404 if not found
22
location ~ \.(?!html) {
23
add_header Cache-Control "public, max-age=2678400";
24
- try_files $uri $uri/ =404;
+ try_files $uri =404;
25
26
0 commit comments