Some anti-crash fixes
This commit is contained in:
parent
bc3777d74c
commit
d52dc8687f
7 changed files with 17 additions and 15 deletions
15
setup/heroku/nginx.conf
Normal file
15
setup/heroku/nginx.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
location / {
|
||||
# try to serve file directly, fallback to rewrite
|
||||
try_files $uri @rewriteapp;
|
||||
}
|
||||
|
||||
location @rewriteapp {
|
||||
# rewrite all to index.php
|
||||
rewrite ^(.*)$ /index.php/$1 last;
|
||||
}
|
||||
|
||||
location ~ ^/index\.php(/|$) {
|
||||
try_files @heroku-fcgi @heroku-fcgi;
|
||||
# ensure that /index.php isn't accessible directly, but only through a rewrite
|
||||
internal;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue