Changes to web server configs and Composer behavior for PHP applications
Change effective on 19 May 2014
Heroku’s PHP support beta now always runs composer install on push, even if no composer.lock file is present. This is to ensure that autoloaders are created and scripts are run even if an application has no package dependencies.
In addition, the following changes have been made to the default web server settings:
- Apache2
ServerNameand Nginxserver_namenow default to “localhost” - Apache2:
mod_proxy_httpandmod_expiresare now enabled by default - Apache2: work around the proxy module unsetting the
AuthorizationHTTP header if provided - Apache2: fix proxying to PHP-FPM to only affect existing
.phpfiles - Nginx: the
PATH_INFOenvironment variable is now only set if not empty - Nginx: disable
port_in_redirectto fix server generated redirects containing the local listening port