Apache and Location directy

Discussion in 'Apache' started by greekman123, Apr 12, 2011.

  1. #1
    Hi,

    I'm trying to password protect a domain ( a company intranet). I initially tried the <Directory> directive. That worked for a single directory , but when I do it for the whole domain, I get multiple login screens. I read that <Location> may be better for this. I tried this in the virtual domain section using a path of /, but now I don't get a login screen.

    Any help would be appreciated.
     
    greekman123, Apr 12, 2011 IP
  2. CI-Andrew

    CI-Andrew Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    If you protect the root directory using <Directory> that should apply to all the sub-directories so there'd be no need for multiple <Directory> entries?
     
    CI-Andrew, Apr 16, 2011 IP