I have a Craft 3 beta project working fine on my local laravel/homestead box using nginx, however when I push to Heroku using their heroku-php-nginx build pack I get nginx (not Craft) 404s when trying to access the /admin area.

My Procfile looks like this:

web: vendor/bin/heroku-php-nginx -C deploy/nginx.conf public/

and my deploy/nginx.conf looks like this:

location / {
    try_files $uri @rewriteapp;

location @rewriteapp {
    rewrite ^(.*)$ /index.php?p=$1 last;

1 Answer 1


This setup works fine with Craft 3:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.