htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PeekHoles
    Registered User
    • Jan 2002
    • 1151

    #1

    htaccess help

    Any one know the code to have htaccess check two htpasswd files instead of just one htpasswd file? Both htpassword files will be on the same server. I heard this can be done but can't find any info on this. If you know how or can lead me in the right direction would be a great help.


    ICQ 102756498
    [email protected]
  • xroach
    Confirmed User
    • Feb 2002
    • 963

    #2
    Originally posted by Forplaz
    Any one know the code to have htaccess check two htpasswd files instead of just one htpasswd file? Both htpassword files will be on the same server. I heard this can be done but can't find any info on this. If you know how or can lead me in the right direction would be a great help.


    ICQ 102756498
    [email protected]

    we have a passwd file for each processor and a script that merges them all every minute on a cron

    Comment

    • PeekHoles
      Registered User
      • Jan 2002
      • 1151

      #3
      Bump

      Comment

      • fiveyes
        Confirmed User
        • Aug 2001
        • 1680

        #4
        When you use a .htaccess file (or, better, a Directory block in your config file) for authentication, it establishes a "realm" within a directory tree. Each realm has one data file, usually called .htpasswd, to resolve the User Name:Password combinations to determine a required valid-user. Realms can be overridden in a subdirectory within a realm, but not nested.

        So, no, there is no coding that will have htaccess check two password files. However, the opposite can be done: You can use one central htpasswd file for more than one site with the use of the htgroup file (and a lot more tricks can be done, as well!)..
        <CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

        <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>

        Comment

        Working...