The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
Learn more about Apache: https://httpd.apache.org/
This Docker container makes it easy to get an instance of Apache up and running.
Based on Official Apache Docker Image with some minor hack:
- Handle
ENTRYPOINTwith dumb-init - Change
UserandGrouptowww-data - Change
DocumentRootto/var/www/html - Additional Apache modules:
- actions
- cache
- cache_disk
- deflate
- expires
- logio
- mime_magic
- negotiation
- proxy
- proxy_fcgi
- proxy_http
- remoteip
- rewrite
For the VOLUME directory that is used to store the repository data (amongst other things) we recommend mounting a host directory as a data volume, or via a named volume if using a docker version >= 1.9.
Start Apache:
# Pull latest image
docker pull alvistack/httpd
# Run as detach
docker run \
-itd \
--name httpd \
--publish 80:80 \
--volume /var/www/html:/var/www/html \
alvistack/httpd
Success. Apache is now available on port http://localhost.
The latest tag matches the most recent version of this repository. Thus using alvistack/httpd:latest or alvistack/httpd will ensure you are running the most up to date version of this image.
- Code released under Apache License 2.0
- Docs released under CC BY 4.0
- Wong Hoi Sing Edison