Heroku Local: "http" directive is duplicate
So it seems the problem is related to the heroku.conf
generated by $root/vendor/heroku/heroku-buildpack-php/conf/nginx/heroku.conf.php
Heroku local
runs nginx with nginx: master process nginx -g daemon off; include $root/vendor/heroku/heroku-buildpack-php/conf/nginx/heroku.conf;
So both /usr/local/etc/nginx/nginx.conf
and heroku.conf
are loaded, hence the duplicate directive.
I've modified /usr/local/etc/nginx/nginx.conf
to only include
worker_processes 1;events { worker_connections 1024;}
since without the events section nginx won't start, and left the rest to heroku.conf
.