Apacher虚拟主机及虚拟目录配置

类别:编程语言 点击:0 评论:0 推荐:
#端口号
 Listen 8082
<VirtualHost *:8082>  
#服务器名称
    ServerName IMPROVING_V20.a09z.com:8082
#站点根目录
    DocumentRoot "E:\PHP\A09Z.COM\IMPROVING_V2.0"
#根目录配置
    <Directory "E:\PHP\A09Z.COM\IMPROVING_V2.0">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
#以下是虚拟目录设置
#设置虚拟目录别名
 Alias /oldver/ "E:\PHP\A09Z.COM\WWW2" 
#虚拟目录设置
 <Directory "E:\PHP\A09Z.COM\WWW2">
     Options Indexes FollowSymlinks MultiViews
     AllowOverride None
     Order allow,deny
     Allow from all
 </Directory>
</VirtualHost>

本文地址:http://com.8s8s.com/it/it23684.htm