Need htaccess help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WebTitan
    Confirmed User
    • Mar 2003
    • 5114

    #1

    Need htaccess help!

    i have a directory that i need to protect, BUT have multiple password files that will give access to that directory. basicly a chat board for members of multiple websites so it needs to consult multiple password files for access.

    anyone know if this can be done?
  • WebTitan
    Confirmed User
    • Mar 2003
    • 5114

    #2
    bump for some help ;)

    Comment

    • WebTitan
      Confirmed User
      • Mar 2003
      • 5114

      #3
      aw come on...no body can help a brutha out?

      Comment

      • directfiesta
        Too lazy to set a custom title
        • Oct 2002
        • 30135

        #4
        Normally, it is the other way around :

        4 or 5 sites sharing the same password file thru their respective .htaccess file...

        Search, there must be a solution ... I have no time to do that search .. sorry.
        I know that Asspimple is stoopid ... As he says, it is a FACT !

        But I can't figure out how he can breathe or type , at the same time ....

        Comment

        • Randyyy
          Confirmed User
          • Jan 2007
          • 2240

          #5
          bump for u man, takes a while to get responses
          need video editing done? hit me up!
          ICQ: 10347906

          Comment

          • mortenb
            Confirmed User
            • Jul 2004
            • 2203

            #6
            are the websites on the same server? or in the same datacenter?

            Comment

            • WebTitan
              Confirmed User
              • Mar 2003
              • 5114

              #7
              Originally posted by directfiesta
              Normally, it is the other way around :

              4 or 5 sites sharing the same password file thru their respective .htaccess file...

              Search, there must be a solution ... I have no time to do that search .. sorry.
              yeah, i spent a lot of last night searching with no luck so thought with the wealth of knowledge on this board, maybe someone here might have an answer ;)

              Comment

              • WebTitan
                Confirmed User
                • Mar 2003
                • 5114

                #8
                Originally posted by mortenb
                are the websites on the same server? or in the same datacenter?
                yes, same server. couple of different drives, but same physical machine

                Comment

                • mortenb
                  Confirmed User
                  • Jul 2004
                  • 2203

                  #9
                  Then the easiest way would be to join all the htpasswd files into a new one for the forum. You could have a cronjob doing it every few minutes to keep the new file updated.

                  Something like "cat passfile1 passfile2 passfile3 passfile4 > newpassfile" and then have the htaccess for the forum point to newpassfile
                  Last edited by mortenb; 05-17-2007, 03:42 PM.

                  Comment

                  • WebTitan
                    Confirmed User
                    • Mar 2003
                    • 5114

                    #10
                    Originally posted by mortenb
                    Then the easiest way would be to join all the htpasswd files into a new one for the forum. You could have a cronjob doing it every few minutes to keep the new file updated.

                    Something like "cat passfile1 passfile2 passfile3 passfile4 > newpassfile" and then have the htaccess for the forum point to newpassfile
                    might give this a try...any chance you know of a tutorial for something like this?

                    Comment

                    • directfiesta
                      Too lazy to set a custom title
                      • Oct 2002
                      • 30135

                      #11
                      Originally posted by WebTitan
                      might give this a try...any chance you know of a tutorial for something like this?
                      for the cron job, if this could work, you can use rsync to keep the files " synced " ...
                      I know that Asspimple is stoopid ... As he says, it is a FACT !

                      But I can't figure out how he can breathe or type , at the same time ....

                      Comment

                      • mortenb
                        Confirmed User
                        • Jul 2004
                        • 2203

                        #12
                        Originally posted by WebTitan
                        might give this a try...any chance you know of a tutorial for something like this?
                        I don't know of any tutorials, but whoever does your coding for you should be able to set it up for you in less than 10 minutes.. It's pretty simple..

                        Comment

                        • WebTitan
                          Confirmed User
                          • Mar 2003
                          • 5114

                          #13
                          cool. thanks for the help guys! I really appreciate it

                          Comment

                          • mortenb
                            Confirmed User
                            • Jul 2004
                            • 2203

                            #14
                            Someday - and that day may never come - I'll call upon you to do a service for me. But until that day, accept this justice as a gift on my....
                            Last edited by mortenb; 05-17-2007, 05:32 PM.

                            Comment

                            • WebTitan
                              Confirmed User
                              • Mar 2003
                              • 5114

                              #15
                              Originally posted by mortenb
                              Someday - and that day may never come - I'll call upon you to do a service for me. But until that day, accept this justice as a gift on my....
                              ok Don Corlone...

                              Comment

                              • Way3
                                Confirmed User
                                • Mar 2007
                                • 1727

                                #16
                                I don't know if these will help you, but I thought I'd pass them along:

                                .htaccess tutorial
                                http://www.freewebmasterhelp.com/tutorials/htaccess/

                                .htaccess file generator
                                http://cooletips.de/htaccess/

                                Hope it helps you. Best of Luck!

                                FULLY Managed! FREE Control Panel! FREE Month on ALL Shared Accounts!!!
                                ICQ: 169-554-261
                                Email: info[at]way3{dot}com

                                Comment

                                Working...