项目作者: macintoshplus

项目描述 :
Docker Apache2 with PHP in php_mod
高级语言: Dockerfile
项目地址: git://github.com/macintoshplus/apache2-php.git
创建时间: 2015-06-16T07:03:30Z
项目社区:https://github.com/macintoshplus/apache2-php

开源协议:

下载


DEPRECATED

Use the official PHP image and customize it.

Use

composer run -d -v /path/sources:/sources -v /path/to/vhost:/etc/apache2/sites-enabled macintoshplus/apache2-php:php73

Exemple of VHost

  1. <VirtualHost *:80>
  2. ServerAdmin admin@domain.tld
  3. DocumentRoot /sources/public
  4. <ifModule mod_headers.c>
  5. Header set Server "DOCKER"
  6. </ifModule>
  7. <Directory ></Directory>
  8. Options FollowSymLinks
  9. AllowOverride All
  10. </Directory>
  11. <Directory /sources/public></Directory>
  12. Options Indexes FollowSymLinks MultiViews
  13. AllowOverride All
  14. Require all granted
  15. </Directory>
  16. ErrorLog ${APACHE_LOG_DIR}/error.log
  17. # Possible values include: debug, info, notice, warn, error, crit,
  18. # alert, emerg.
  19. LogLevel warn
  20. CustomLog ${APACHE_LOG_DIR}/access.log combined
  21. </VirtualHost>