virtualhost 里面设定多个servername

<VirtualHost *:80>

ServerAdmin [email protected]
DocumentRoot /xxx/xxx/
ServerName t.whoistester.com
ServerAlias performtesting.whoistester.com
ErrorLog logs/t.log.whoistester.com-error_log
CustomLog logs/t.log.whoistester.com-access_log common
AddOutputFilterByType DEFLATE application/x-javascript text/javascript text/css

</VirtualHost>

使用ServerAlias 指示标签

此篇文章已被阅读2905 次

Add a Comment

邮箱地址不会被公开。 必填项已用*标注