This is a build pack bundling PHP and Apache for Heroku apps. It tests for the presence of an index.html
or index.php
file and then serves out of root with Apache.
For new apps:
$ heroku create --stack cedar --buildpack https://github.com/stevenosloan/heroku-buildpack-ruby.git
For existing apps:
$ heroku config:add BUILDPACK_URL=https://github.com/stevenosloan/heroku-buildpack-apache.git
in .htaccess add:
AuthUserFile /app/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
generate and add an .htpasswd to root
The config files are bundled with the build pack itself:
- conf/httpd.conf
- conf/php.ini
Big thanks to the guys behind the php buildpack
Released under the MIT License