Answer the question
In order to leave comments, you need to log in
Nginx - how to specify a specific file for a URI?
I have a Vue.JS + DRF project . Now I'm setting up Nginx . I need to always call the index.html
. I know Nginx has root , alias , try_files . But they do not suit me, it is necessary that index.html
. How can this be implemented?
So far I've done this:
location / {
root /.../frontend;
try_files /index.html /index.html;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question