Skip to content

Commit 7b87855

Browse files
author
Stefano Malagò
committed
better formatting for nginx.conf
1 parent f352c1c commit 7b87855

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

frontend/nginx/nginx.conf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
server {
22

3-
listen 8080;
3+
listen 8080;
44

5-
location / {
6-
root /usr/share/nginx/html;
7-
index index.html index.htm;
8-
try_files $uri $uri/ /index.html;
9-
}
5+
location / {
6+
root /usr/share/nginx/html;
7+
index index.html index.htm;
8+
try_files $uri $uri/ /index.html = 404;
9+
}
1010

1111

12-
error_page 500 502 503 504 /50x.html;
12+
error_page 500 502 503 504 /50x.html;
1313

14-
location = /50x.html {
15-
root /usr/share/nginx/html;
16-
}
14+
location = /50x.html {
15+
root /usr/share/nginx/html;
16+
}
1717
}

0 commit comments

Comments
 (0)