Simple alias not working

Discussion in 'Apache' started by simonmason, Sep 2, 2008.

  1. #1
    I am trying to set up a simple alias and for some reason can't get it working. I have apache running on a Windows XP machine and the default directory is c:\www. I added the following alias and directory command (shown below). I get nothing for www.servername.com/photo. I tried putting an index.html in the directory but nothing. The drive is physically in the same machine and the user running the web server is an admin user so has full rights to the directory. What am I missing? Thanks.

    Alias /photo "f:/Photo"

    <Directory "f:/Photo">
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
    </Directory>
     
    simonmason, Sep 2, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try removing all the <Directory ".... stuff and add a trailing slash
     
    The Universes, Sep 2, 2008 IP
  3. simonmason

    simonmason Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I did this and I now get "You don't have permission to access /photo/ on this server." I suppose this is a change but not the desired outcome. I am assuming I have to set directory rights, hence the directory command? Any thoughts? Thanks.
     
    simonmason, Sep 2, 2008 IP
  4. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thats a permissions issue, nothing wrong with Apache. So yeah, change the permissions on the F drive and the Photo directory so that it can at least read it.
     
    The Universes, Sep 2, 2008 IP
  5. simonmason

    simonmason Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It was an issue with the slashes. I fixed it. Thanks for the help.
     
    simonmason, Sep 2, 2008 IP