linux 7.3 apache2.4 虚拟机配置

<VirtualHost *:80>
ServerAdmin webmaster@host.example.com
DocumentRoot "/web/webdata/pc"
ServerName www.test.com
ErrorLog "logs/www.test.com-error_log"
TransferLog "logs/www.test.com-access_log"
</VirtualHost>

 

<VirtualHost *:80>
ServerName wap.test.com
RedirectMatch permanent ^/(.*) http://m.test.com/$1
</VirtualHost>

 

 


<Directory />
# AllowOverride none
AllowOverride All
# Require all denied
Require all granted
</Directory>

posted @ 2017-09-15 20:54  黑牛儿  阅读(83)  评论(0编辑  收藏  举报