Answer the question
In order to leave comments, you need to log in
How to configure Nginx to work with History API in SPA application?
Just started working with Nginx (previously used Apache) and ran into a problem setting up a project configuration.
There are 2 main files in the public folder:
Answer the question
In order to leave comments, you need to log in
location /api/ {
// proxypass php
}
location / {
try_files $uri $uri/ index.html;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question