【发布时间】:2018-01-24 15:07:00
【问题描述】:
我在运行 docker 时遇到三个错误:
错误:for learningphp7_web_1 无法为服务 web 创建容器:无效模式:/etc/apache2/sites-enabled/virtualhosts.conf
错误:对于 web 无法为服务 web 创建容器:无效模式:/etc/apache2/sites-enabled/virtualhosts.conf
错误:启动项目时遇到错误。
我该如何解决这些问题并最终开始使用 docker?
我的virtualhosts.conf:
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html/web
DirectoryIndex index.php
<Directory /var/www/html/web>
AllowOverride None
Require all granted
Allow from All
Options FollowSymLinks
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
</VirtualHost>
【问题讨论】:
标签: apache docker docker-compose docker-machine