File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
nginx/filesystem/etc/nginx/conf.d Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,21 @@ server {
43
43
#charset koi8-r;
44
44
#access_log /var/log/nginx/host.access.log main;
45
45
46
+ # index.html
46
47
location = / {
47
48
root /usr/share/nginx/html;
48
49
try_files /index .html =404 ;
49
50
}
50
51
52
+ # Catch-all for non-existant pages
51
53
location / {
54
+ return 404 ;
55
+ }
56
+
57
+ # Angular pages
58
+ location ~ ^/( background|user |vm-admin|twitch|imdb-search) {
52
59
root /usr/share/nginx/html;
53
- try_files $uri $uri / =404 ;
60
+ try_files $uri $uri / / index .html =404 ;
54
61
}
55
62
56
63
location /api/v1 {
@@ -91,12 +98,6 @@ server {
91
98
proxy_set_header X-Forwarded-Port $server_port ;
92
99
}
93
100
94
- # Angular pages
95
- location ~ ^/( background|user /auth|user /login|vm-admin|twitch-bot|imdb-search) {
96
- root /usr/share/nginx/html;
97
- try_files $uri $uri / /index .html =404 ;
98
- }
99
-
100
101
# Verification for our SSL certificate with Let's Encrypt
101
102
location /.well-known {
102
103
root /usr/share/nginx/html;
You can’t perform that action at this time.
0 commit comments