apache虚拟主机

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>


[本日志由 StarrySKY 于 2009-12-01 01:05 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
评论: 0 | 引用: 0 | 查看次数: 586
发表评论
你没有权限发表评论!