运行docker时出现三个错误:
错误:用于学习php7_web_1无法为服务网站创建容器:无效模式:/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>
Run Code Online (Sandbox Code Playgroud)