Click to download

Discussion in 'Apache' started by ltlhawk, Jul 20, 2011.

  1. #1
    Hi Guys, this is my first post so please excuse my newbyness.

    I have an apache webserver running that I use for development. One thing I would like to set up is the ability for someone to click on a file in a list and download that file, but when the list comes up and someone clicks the file it says access denied. Here is a copy of what comes up:

    Access forbidden!

    You don't have permission to access the requested object. It is either read-protected or not readable by the server.

    I have the htaccess set to basic and was wondering if that was why. Any suggestions are appreciated.
     
    ltlhawk, Jul 20, 2011 IP
  2. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    sounds like ownership issue
     
    aroel, Jul 20, 2011 IP
  3. ltlhawk

    ltlhawk Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, but how do I fix it..
     
    ltlhawk, Jul 20, 2011 IP
  4. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #4
    change the files ownership to the same apache user
     
    aroel, Jul 20, 2011 IP
  5. thiyagu114

    thiyagu114 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do this on your configuration file, (\\\xampp\apache\conf\extra\httpd-xampp.conf)

    Order deny,allow
    Deny from all
    Allow from localhost


    changed this to

    Deny From none
    Allow from All

    and saved the file , then i restarted xampp through Xampp control panel Application
    stop and start function.

    -
    Thyag
     
    thiyagu114, Aug 9, 2011 IP