fix(nginx): errors pages
parent
ed36207636
commit
9b14a7212e
|
@ -67,10 +67,10 @@ http {
|
|||
error_page 500 /500.html;
|
||||
error_page 503 /503.html;
|
||||
|
||||
location = /403.html { alias /flarum/app/vendor/flarum/core/error; }
|
||||
location = /404.html { alias /flarum/app/vendor/flarum/core/error; }
|
||||
location = /500.html { alias /flarum/app/vendor/flarum/core/error; }
|
||||
location = /503.html { alias /flarum/app/vendor/flarum/core/error; }
|
||||
location = /403.html { alias /flarum/app/vendor/flarum/core/error/403.html; }
|
||||
location = /404.html { alias /flarum/app/vendor/flarum/core/error/404.html; }
|
||||
location = /500.html { alias /flarum/app/vendor/flarum/core/error/500.html; }
|
||||
location = /503.html { alias /flarum/app/vendor/flarum/core/error/503.html; }
|
||||
|
||||
location / { try_files $uri $uri/ /index.php?$query_string; }
|
||||
location /api { try_files $uri $uri/ /api.php?$query_string; }
|
||||
|
|
Loading…
Reference in New Issue