Home

Awesome

Apache HTTP Server Docker Container Image

Build Status Docker Pulls Docker Stars

Docker Images

❗️For better reliability we release images with stability tags (wodby/apache:2.4-X.X.X) which correspond to git tags. We strongly recommend using images only with stability tags.

Overview:

Supported tags and respective Dockerfile links:

All images built for linux/amd64 and linux/arm64

Environment Variables

VariableDefault ValueDescription
APACHE_ALLOW_OVERRIDE_ENABLEDAll
APACHE_DIRECTORY_INDEXindex.html
APACHE_GROUPapache
APACHE_HOSTNAME_LOOKUPSOff
APACHE_HTTP2
APACHE_INCLUDE_CONFconf/conf.d/*.conf
APACHE_INDEXES_ENABLED
APACHE_KEEP_ALIVE_TIMEOUT5
APACHE_KEEP_ALIVEOn
APACHE_LIMITED_ACCESS
APACHE_LOG_LEVELwarn
APACHE_MAX_KEEP_ALIVE_REQUESTS100
APACHE_MPM_EVENT_MAX_CLIENTS400
APACHE_MPM_EVENT_SERVER_LIMIT16
APACHE_MPM_EVENT_START_SERVERS3
APACHE_MPM_EVENT_THREAD_LIMIT64
APACHE_MPM_EVENT_THREADS_PER_CHILD25
APACHE_MPMevent
APACHE_PORT80
APACHE_REQUEST_READ_TIMEOUTheader=20-40,MinRate=500 body=20,MinRate=500
APACHE_SERVER_NAMEdefault
APACHE_SERVER_NAMEdefault
APACHE_SERVER_SIGNATUREOff
APACHE_SERVER_TOKENSFull
APACHE_TIMEOUT60
APACHE_USE_CANONICAL_NAMEOff
APACHE_USERapache
APACHE_VHOST_PRESEThtml

Enabled Modules

The list of installed modules: https://github.com/wodby/apache/blob/master/tests/basic/apache_modules

Virtual hosts presets

By default will be used html virtual host preset, you can change it via env var $APACHE_VHOST_PRESET. The list of available presets:

HTML

This is the default preset.

PHP (FastCGI)

Additional environment variables for PHP preset:

VariableDefault ValueDescription
APACHE_BACKEND_HOSTphp
APACHE_BACKEND_PORT9000
APACHE_DIRECTORY_INDEXindex.php
APACHE_FCGI_PROXY_CONN_TIMEOUT5
APACHE_FCGI_PROXY_TIMEOUT60

Customization

If you can't customize a config via environment variables, you can completely override include of the virtual host config by overriding APACHE_INCLUDE_CONF, it will be included in httpd.conf.

Orchestration actions

Usage:

make COMMAND [params ...]

commands:
    check-ready [host max_try wait_seconds]
 
default params values:
    host localhost
    max_try 1
    wait_seconds 1
    delay_seconds 0