日期:2014-05-17  浏览次数:20695 次

apache http.conf文件的配置
创建name based virtualhost
绑定端口12345

Listen 12345
NameVirtualHost *:12345
<VirtualHost *:12345>
ServerName one.virtualhost.net
DocumentRoot "e:/web/"

</VirtualHost>


创建alias

Alias /phpmyadmin "d:/Program Files/phpmyadmin3.3.9/" 

<Directory "d:/Program Files/phpmyadmin3.3.9/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    
    Options +ExecCGI    # 添加CGI支持
    AddHandler cgi-script cgi py    # 告诉apache哪些文件后缀是cgi程序
</Directory>