This is a Heroku buildpack for apache httpd that enables you to easily specify the version, compilation arguments and configuration files. The output of the compilation step is cached to speed up future deployments.
This buildpack only handles compiling and configuring Apache, so you may want to use this in conjunction with buildpack-multi.
heroku buildpack:set https://github.com/lookfirst/heroku-buildpack-apache
- Create a top level
.apache
folder in your Heroku project - Add a file called
.apache.cfg
to the.apache
folder - Specify a version:
export APACHE_VERSION=2.4.12
- Customize apache compile
configure
arguments:export CONFIGURE_ARGS="--enable-foo"
1. Do not specify--prefix
- Put Apache configuration into the
.apache/conf
folder - The contents of this folder are copied over the apache configuration folder in
/app/apache/etc/apache2
- Anything with a suffix of
.erb
is processed througherb
for environment variable replacement (<%= ENV["PORT"] %>
) - Push your project to heroku:
git push heroku master