Log in

View Full Version : Can't get Alias directive to work on Apache


secretss
Oct 6, 2009, 04:14 AM
Hi, I'm new at setting up web servers so please be gentle with me, thanks!

My DocumentRoot is located at C:\Music, but I want to have my photo collection in my D drive to be up on the web as well. I have in my httpd.conf:


DocumentRoot "C:\Music"
Alias /Photos "D:\Photos"

<Directory "C:\Music">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

But the alias isn't working. When I go to cPanel (http://localhost/) All I see are the folders under C:\Music.

The tutorial I followed to set up my web server is here (http://lifehacker.com/124212/geek-to-live--how-to-set-up-a-personal-home-web-server). I do not have PHP, JSP and/or MySQL installed. Can anyone tell me what the problem is? Thank you!

secretss
Oct 6, 2009, 05:21 AM
Oh, wait. It does work. When I enter the url into the address bar, it does show me the photos in the D drive.

I thought it didn't work because I assumed the aliased directory will show up as a link on the parent directory page together with my music files from DocumentRoot.