<Directory "D:/wamp/www/projectname/filename">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from none
Allow from all
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from none
Allow from all
</Directory>
NameVirtualHost 127.0.0.1:80
<VirtualHost adm.xxxx.com:80>
DocumentRoot D:/wamp/www/projectname/filename
ServerName adm.xxxx.com
ServerAlias adm.xxxx.com
</VirtualHost>
本文介绍如何通过Apache配置文件设置虚拟主机,实现多个域名指向同一服务器的不同目录。具体包括Directory指令的使用,设置访问权限,以及VirtualHost配置示例。

6375

被折叠的 条评论
为什么被折叠?



