Skip to content

Commit 8f4d9f6

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

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Docker/nginx-nossl.conf

+4-1
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

+3
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)