Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Web Servers (https://www.askmehelpdesk.com/forumdisplay.php?f=456)
-   -   Can't get Alias directive to work on Apache (https://www.askmehelpdesk.com/showthread.php?t=403163)

  • Oct 6, 2009, 04:14 AM
    secretss
    Can't get Alias directive to work on Apache
    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:

    Code:

    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 All I see are the folders under C:\Music.

    The tutorial I followed to set up my web server is here. I do not have PHP, JSP and/or MySQL installed. Can anyone tell me what the problem is? Thank you!
  • Oct 6, 2009, 05:21 AM
    secretss
    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.

  • All times are GMT -7. The time now is 10:40 AM.