Sign inSign up

gpatsiaouras/apache-php

By gpatsiaouras

•Updated over 8 years ago

Image containing an apache2 server and php7.0 libraries

Image
0

853

gpatsiaouras/apache-php repository overview

⁠Use with docker-compose.yml
version: '3.3'
services:
  httpd:
    image: gpatsiaouras/apache-php
    restart: always
    ports:
      - 80:80
    volumes:
      - path/to/your/config.conf::/etc/apache2/sites-available/myhttpd.conf
      - /var/www:/var/www
⁠Example of config file
<VirtualHost *:80>
        DocumentRoot /var/www/mydomain_com
        ServerName mydomain.com
</VirtualHost>

<VirtualHost *:80>
        DocumentRoot /var/www/mysubdomain_mydomain_com
        ServerName mysubdomain.mydomain.com
        <Directory /var/www/mysubdomain_mydomain_com>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Require all granted
    </Directory>
</VirtualHost>

Tag summary

Content type

Image

Digest

Size

206.2 MB

Last updated

over 8 years ago

docker pull gpatsiaouras/apache-php