1. 程式人生 > >linux 7.3 apache2.4 虛擬機配置

linux 7.3 apache2.4 虛擬機配置

www allow ces root linu tran admin red rec

<VirtualHost *:80>
ServerAdmin [email protected]
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>

linux 7.3 apache2.4 虛擬機配置