Skip to content

Commit 0379b78

Browse files
nginx config
1 parent be3fad4 commit 0379b78

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

nginx.conf

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
daemon off;
2-
31
server {
4-
listen 80 default_server;
2+
listen 80 default_server;
3+
4+
root /app;
55

6-
root /app;
6+
# Logging
7+
access_log /dev/stdout;
8+
error_log /dev/stderr;
79

8-
# normal routes
9-
# serve given url and default to index.html if not found
10-
# e.g. /, /user and /foo/bar will return index.html
11-
location / {
12-
try_files $uri $uri/index.html /index.html;
13-
}
10+
location / {
11+
try_files $uri $uri/ /index.html;
12+
}
1413

15-
# files
16-
# for all routes matching a dot, check for files and return 404 if not found
17-
# e.g. /file.js returns a 404 if not found
18-
location ~ \.(?!html) {
19-
try_files $uri =404;
20-
}
14+
# Files
15+
location ~ \.(?!html) {
16+
try_files $uri =404;
17+
}
2118
}

0 commit comments

Comments
 (0)