Heroku fix
This commit is contained in:
parent
3b5c3cd96c
commit
d061c210a2
2
Procfile
2
Procfile
|
@ -1 +1 @@
|
||||||
web: vendor/bin/heroku-php-nginx -C ./setup/nginx.conf
|
web: vendor/bin/heroku-php-nginx -C setup/nginx_heroku.conf
|
||||||
|
|
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…
Reference in a new issue