apache虚拟主机
作者:StarrySKY 日期:2009-04-20
Listen 81
<VirtualHost *:81>
ServerAdmin webmaster@aa
DocumentRoot "D:/xx"
ServerName xxx
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.xxx.com
DocumentRoot "D:/WebSite/finallin"
DirectoryIndex index.html index.htm index.php
ErrorLog /var/websitelogs/error/phpad.bjedu.cn-error_log
CustomLog /var/websitelogs/phpad.bjedu.cn-access_log common
</VirtualHost>
虚拟目录
Alias /web "F:/xx"
<Directory "F:/xx">
Options Indexes MultiViews
AddOutputFilter Includes html
AllowOverride None
order allow,deny
Allow from all
</Directory>
<VirtualHost *:81>
ServerAdmin webmaster@aa
DocumentRoot "D:/xx"
ServerName xxx
</VirtualHost>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.xxx.com
DocumentRoot "D:/WebSite/finallin"
DirectoryIndex index.html index.htm index.php
ErrorLog /var/websitelogs/error/phpad.bjedu.cn-error_log
CustomLog /var/websitelogs/phpad.bjedu.cn-access_log common
</VirtualHost>
虚拟目录
Alias /web "F:/xx"
<Directory "F:/xx">
Options Indexes MultiViews
AddOutputFilter Includes html
AllowOverride None
order allow,deny
Allow from all
</Directory>
评论: 0 | 引用: 0 | 查看次数: 586
发表评论
你没有权限发表评论!
上一篇
下一篇


文章来自:
Tags: 





