fix(nginx): errors pages

pull/34/head
Magicalex 2018-11-05 21:03:02 +01:00
parent ed36207636
commit 9b14a7212e
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
1 changed files with 4 additions and 4 deletions

View File

@ -67,10 +67,10 @@ http {
error_page 500 /500.html; error_page 500 /500.html;
error_page 503 /503.html; error_page 503 /503.html;
location = /403.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; } location = /404.html { alias /flarum/app/vendor/flarum/core/error/404.html; }
location = /500.html { alias /flarum/app/vendor/flarum/core/error; } location = /500.html { alias /flarum/app/vendor/flarum/core/error/500.html; }
location = /503.html { alias /flarum/app/vendor/flarum/core/error; } location = /503.html { alias /flarum/app/vendor/flarum/core/error/503.html; }
location / { try_files $uri $uri/ /index.php?$query_string; } location / { try_files $uri $uri/ /index.php?$query_string; }
location /api { try_files $uri $uri/ /api.php?$query_string; } location /api { try_files $uri $uri/ /api.php?$query_string; }