Heroku fix
This commit is contained in:
parent
3b5c3cd96c
commit
d061c210a2
2 changed files with 16 additions and 1 deletions
15
setup/nginx_heroku.conf
Normal file
15
setup/nginx_heroku.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