heroku / heroku-buildpack-php

Heroku's buildpack for PHP applications.

Home Page:https://devcenter.heroku.com/categories/php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX build with stub status module --with-http_stub_status_module

CaitlinWeb opened this issue · comments

There is a need for us to enable the NGINX status page for Application Performance Monitoring. We've got it working locally (not on Heroku), but on Heroku enabling it (stub_status;) fails with an App Crashed error. Pretty sure heroku-php-nginx needs to be configured with the --with-http_stub_status_module option. Would it be possible to make that change, or is there a workaround?

cc: @dzuelke since you've done similar changes in the past like #182

Would it help if I submitted a PR? If I understand correctly --with-http_stub_status_module needs to be added to this: https://github.com/heroku/heroku-buildpack-php/blob/main/support/build/nginx#L36