NGINX config - fix 404 error for SPA usage
This commit is contained in:
1 parent
1f5057438f
commit
32e4f223f8
1 file changed
+3
@@ -6,6 +6,9 @@ http {
|
||||
server {
|
||||
error_page 404 /index.html;
|
||||
root /usr/share/nginx/html;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
|
||||
expires 1y;
|
||||
add_header Pragma public;
|
||||
|
||||
Reference in new issue
Block a user