Skip to content

stevenosloan/heroku-buildpack-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Old Software is Old -- this is unmaintained and left for posterity

Apache+PHP build pack

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.

Use

For new apps:

$ heroku create --stack cedar --buildpack https://github.com/stevenosloan/heroku-buildpack-apache.git

For existing apps:

$ heroku config:add BUILDPACK_URL=https://github.com/stevenosloan/heroku-buildpack-apache.git

Basic Authentication

in .htaccess add:

AuthUserFile /app/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user

generate and add an .htpasswd to root

Configuration

The config files are bundled with the build pack itself:

  • conf/httpd.conf
  • conf/php.ini

Meta

Big thanks to the guys behind the php buildpack

Released under the MIT License

About

Custom Heroku buildpack for serving sites with Apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published