apache httpd 配置虚拟目录
安装apache httpd后,修改 C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf ,在其中增加如下:
Alias /C/ "C:/"
<Directory "C:/">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
Alias /D/ "D:/"
<Directory "D:/">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
Alias /E/ "E:/"
<Directory "E:/">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
特别注意(备忘下):
Alias /D/ "D:/" 不能 Alias /D "D:/" 或 Alias /D/ "D:" 一开始一直出不来。
然后 http://localhost/C/ 在浏览器上展现C盘的内容