Answer the question
In order to leave comments, you need to log in
How to make such a config?
If location
any other than /api/
, then we return index.html
, and if location = /api/
then proxy_pass
localhost:4200
Answer the question
In order to leave comments, you need to log in
location / {
rewrite ^ /index.html break;
}
location = /api/ {
proxy_pass http://localhost:4200;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question