Forum Moderators: phranque
I have a question. I have 2 password protected site on 1 server.
Both have seperate htpasswords on them because one is should be tracked seperate. I can not use just one single htpassword file.
What I want to have is for my htaccess file to check both htpassword files.
So people who have subscribed to the other site, will also gain access to the other with the same password.
Below is what I got now. Could anybody modify this so I can use it? I appreciate all help!
Kind Regards,
Miranda
My htaccess file I have now:
AuthUserFile /home/virtual/site1/fst/var/www/cgi-bin/Tr5uqAfMtUm7EasiZzNnHVWDgv2ByQkx/password/.htpasswd
AuthGroupFile /dev/null
AuthName "Information Area"
AuthType Basic
Satisfy Any
<Limit GET POST>
order deny,allow
deny from all
require valid-user
</Limit>
I need to add this password file:
/home/virtual/site1/fst/var/www/cgi-bin/Tr5uqAfMtUm7EasiZzNnHVWDgv2ByQkx/password/.htpasswd
You said:
I have 2 password protected site on 1 server....So people who have subscribed to the other site, will also gain access to the other with the same password.
I'm assuming there are two(2) websites, so there should be two(2) public root directories in which you can place .htaccess files.
Sorry if I'm not understanding what you are looking for, but we can definately get it straight with some more information.
Thanks for responding again.
What I need in short:
I have to websites. Both have a subscribe area and a members section.
What I want is that a subscriber to website A also get access to website B without having to subscribe also at website B.
Because the other website is totally seperate from mine, we can not have 1 htpasswrd file.
So I need a way for htaccess to check 2 htpasswrd files.
One at website A and one at website B.
Both websites are hosted on the same server.
I hope this makes sense to you.
Kind Regards,
Miranda