<Directory> directive doesn't work

Discussion in 'Apache' started by ignas2526, Jul 19, 2009.

  1. #1
    Hello,
    I trying to restrict access to certain directories with no luck. I getting 500'th server error, any ideas whats wrong which this code:
    <Directory ~ "^.(dira|dirb|dirc)$">
      Order Deny,Allow
      Deny from All
    </Directory>
    Code (markup):
    Thanks.
     
    ignas2526, Jul 19, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    50o-th error means internal server error - not access error. Typically this error occurs when server can't execute some script normally
     
    vasyl, Jul 19, 2009 IP
  3. ignas2526

    ignas2526 Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I know what 500'th error means, it occurs then i create .htaccess with that content.
     
    ignas2526, Jul 20, 2009 IP
  4. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    szalinski, Aug 20, 2009 IP