We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be3fad4 commit 0379b78Copy full SHA for 0379b78
nginx.conf
@@ -1,21 +1,18 @@
1
-daemon off;
2
-
3
server {
4
- listen 80 default_server;
+ listen 80 default_server;
+
+ root /app;
5
6
- root /app;
+ # Logging
7
+ access_log /dev/stdout;
8
+ error_log /dev/stderr;
9
- # normal routes
- # 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
- }
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
14
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
+ # Files
+ location ~ \.(?!html) {
+ try_files $uri =404;
21
}
0 commit comments