We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52bdbfe commit a8c0796Copy full SHA for a8c0796
Procfile
@@ -1 +1 @@
1
-web: vendor/bin/heroku-php-apache2 public/
+web: vendor/bin/heroku-php-nginx -C nginx.conf public/
nginx.conf
@@ -0,0 +1,15 @@
+location / {
2
+ # try to serve file directly, fallback to rewrite
3
+ try_files $uri @rewriteapp;
4
+}
5
+
6
+location @rewriteapp {
7
+ # rewrite all to index.php
8
+ rewrite ^(.*)$ /index.php/$1 last;
9
10
11
+location ~ ^/index\.php(/|$) {
12
+ try_files @heroku-fcgi @heroku-fcgi;
13
+ # ensure that /index.php isn't accessible directly, but only through a rewrite
14
+ internal;
15
0 commit comments