docker虚拟主机apache2
我想用我的容器创建一个虚拟主机,但它不起作用 在我的容器中执行的操作:docker虚拟主机apache2,docker,virtualhost,Docker,Virtualhost,我想用我的容器创建一个虚拟主机,但它不起作用 在我的容器中执行的操作: 我已将/etc/hosts设置为127.0.0.1资产。o 我已经创建了可用的站点assets.o.conf <VirtualHost *:80> ServerName assets.o ServerAdmin webmaster@localhost DocumentRoot "/var/www/html/o/statics/assets/" <Directory "/var
<VirtualHost *:80>
ServerName assets.o
ServerAdmin webmaster@localhost
DocumentRoot "/var/www/html/o/statics/assets/"
<Directory "/var/www/html/o/statics/assets/">
Options Indexes FollowSymLinks Multiviews
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/assets.error.log
LogLevel notice
CustomLog ${APACHE_LOG_DIR}/assets.access.log combined
ServerName资产
服务器管理员webmaster@localhost
DocumentRoot“/var/www/html/o/statics/assets/”
选项索引跟随符号链接多视图
不允许超限
要求所有授权
ErrorLog${APACHE_LOG_DIR}/assets.error.LOG
日志级别通知
CustomLog${APACHE_LOG_DIR}/assets.access.LOG组合