Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
conf.d
Dockerfile
README.md

README.md

Alpine HTTPd 2.4

An Apache 2.4 image forked from offical repository.

With configuration:

  • Deflate.
  • ETags.
  • Expires.
  • Security.
  • SSL support.
  • You can put your vhost in /usr/local/apache2/conf/vhost.d (This directory can be shared with the host).

Work also with

  • PHP-FPM handler toward php hostname.

Usage

With docker client

You can run this container with docker client:

docker run -d \
  --volumes /etc/localtime:/etc/localtime:ro \
  --volumes /docker/volumes/www:/var/www \
  --volumes /docker/volumes/httpd24/conf/vhost.d:/usr/local/apache2/conf/vhost.d:ro \
  --volumes /docker/volumes/httpd24/conf/ssl://usr/local/apache2/conf/ssl:ro \
  -p 80:80 \
  -p 443:443 \
  llaumgui/httpd24

With compose

You can use this container in a docker-compose.yml file:

  httpd:
    container_name: httpd
    image: llaumgui/httpd24
    restart: always
    volumes:
     - /etc/localtime:/etc/localtime:ro
     - /docker/volumes/www:/var/www/
     - /docker/volumes/httpd24/conf/vhost.d:/usr/local/apache2/conf/vhost.d:ro
     - /docker/volumes/httpd24/conf/ssl:/usr/local/apache2/conf/ssl:ro
    ports:
     - "80:80"
     - "443:443"