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 bde9b1b commit 6610b28Copy full SHA for 6610b28
Procfile
@@ -1,2 +1,2 @@
1
sqs: php artisan queue:work --timeout=1800
2
-web: vendor/bin/heroku-php-nginx public/
+web: vendor/bin/heroku-php-nginx -C nginx_app.conf /public
nginx_app.conf
@@ -0,0 +1,14 @@
+location / {
+ # try to serve file directly, fallback to rewrite
3
+ try_files $uri @rewriteapp;
4
+}
5
+
6
+location @rewriteapp {
7
+ # rewrite all to app.php
8
+ rewrite ^(.*)$ /index.php/$1 last;
9
10
11
+location ~ ^/(app|app_dev|config)\.php(/|$) {
12
+ try_files @heroku-fcgi @heroku-fcgi;
13
+ internal;
14
public/nginx_app.conf
0 commit comments