Having folders outside of xampp directory?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Having folders outside of xampp directory?

Postby hobano » 10. March 2008 03:07

I have my site "C:\xampp\htdocs\" folder.

I have a directory on my "D:" drive i want to have listed.

Do I have to put my contents from "D:" into my htdocs folder, or is there another way?


sorry, just realized this was in the wrong forum :!:
Posts: 4
Joined: 13. December 2007 04:27

Postby Nobbie » 10. March 2008 12:41

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

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.
Posts: 8635
Joined: 09. March 2008 13:04

Postby tjrush » 17. March 2008 09:02

May I ask, where within the httpd.conf file do you put the Alias directive?
Posts: 18
Joined: 09. February 2007 11:11

Postby Milligan » 17. March 2008 09:14

Last edited by Milligan on 17. July 2008 05:44, edited 1 time in total.
Posts: 136
Joined: 03. March 2008 06:23

Postby sari42 » 17. March 2008 16:36

your xampp has already some alias folders defined in


(for example phpmyadmin...)
Posts: 800
Joined: 27. November 2005 18:28

Postby tjrush » 18. March 2008 06:23

Thank you. I have it working.
Posts: 18
Joined: 09. February 2007 11:11

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 60 guests