天天看點

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槽的内容