apache虚拟主机配置

常用的配置:

<VirtualHost *:80>
ServerAdmin romy@redidai.com
DocumentRoot "D:/var/www/user_admin/"
ServerName user_admin.redidai.com
ErrorLog "logs/romy-redidai.com-error.log"
CustomLog "logs/romy-redidai.com-access.log" common

<Directory "D:/var/www/user_admin/">
allow from all
order allow,deny
AllowOverride All
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>

posted @ 2013-12-16 10:37  幻星宇  阅读(155)  评论(0编辑  收藏  举报