标签:模块 write host pre MLOG access com load 配置
开启重写模块
LoadModule rewrite_module modules/mod_rewrite.so
编辑配置
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName $DOMAIN_NAME
ErrorLog "logs/error_log"
CustomLog "logs/access_log" combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/html/$DIR"
ServerName $PREFIX.$DOMAIN_NAME
ErrorLog "logs/error_log"
CustomLog "logs/access_log" combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/html/$ANOTHER_DIR"
ServerName $ANOTHER_PREFIX.$DOMAIN_NAME
ErrorLog "logs/error_log"
CustomLog "logs/access_log" combined
</VirtualHost>
标签:模块 write host pre MLOG access com load 配置
原文地址:https://www.cnblogs.com/seliote/p/9313572.html