No. You can use "Alias" Directive to access the directory in D:
Edit httpd.conf and insert the Alias:
- Code: Select all
Alias /anyname D:/anyfolder/somewhere
You may replace "anyname" and so on by your own values. After reboot of Apache you can access the files in D:/anyfolder/somewhere by typing
http://localhost/anyname in your browser.
Usually Apache may not access all folders on your PC, therefore it might be necessary to grant access to the new folder via <directory ...>:
- Code: Select all
<Directory D:/anyfolder/somewhere>
Option Indexes
Order allow,deny
Allow from all
</Directory>
Insert these lines directly under the Alias for better readability. If you leave them out and Apache does not have sufficient rights to access D:/anyfolder/somewhere, you will get an Error 403.