Skip to content

Commit 8f4d9f6

Browse files
committed
Improved nginx locations for angular app
1 parent 44297bf commit 8f4d9f6

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Docker/nginx-nossl.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ http {
2424
server {
2525
listen 80;
2626

27-
location / {
27+
location / {
2828
root /usr/share/nginx/html;
29+
index index.html;
30+
31+
try_files $uri $uri/ /index.html?$args;
2932
error_log /var/log/front_end_errors.log;
3033
}
3134
location /api/ {

Docker/nginx-ssl.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ http {
2828

2929
location / {
3030
root /usr/share/nginx/html;
31+
index index.html;
32+
33+
try_files $uri $uri/ /index.html?$args;
3134
error_log /var/log/front_end_errors.log;
3235
}
3336
location /api/ {

0 commit comments

Comments
 (0)