Same apache auth on multiple domains

Same apache auth on multiple domains

Post by Dan » Thu, 17 Apr 2003 00:14:56



Hello,

Guys i have following problem, i have 20 sites that are protected by
htaccess, they use same .htpasswd file, for example when users enters
site from members.site1.com and then clicks link on members.site1.com
that points to members.site2.com it asks for password again, is there
way avoid this multiple time auth prompt?

Thank You very much.

 
 
 

Same apache auth on multiple domains

Post by Chris Morri » Wed, 16 Apr 2003 22:12:01



> Guys i have following problem, i have 20 sites that are protected by
> htaccess, they use same .htpasswd file, for example when users enters
> site from members.site1.com and then clicks link on members.site1.com
> that points to members.site2.com it asks for password again, is there
> way avoid this multiple time auth prompt?

Authentication seems to be by two parts - e.g.
Enter username and password for "restricted_access" at "www.example.org"

If either are different then the browser tends to assume (usually
safely!) that it's a different set of usernames/passwords.  I'd be
worried if it didn't, since this could be used to give my username and
password for one site to another site.

I don't think it's possible using .htaccess, no.

You might be able to do something complicated with mod_rewrite and
mod_proxy in Apache, so a link to:
members.site1.com/page goes to www.sites.com/site1/members/page
members.site2.com/page goes to www.sites.com/site2/members/page and so on.

Then, to the browser, all of the sites will appear to be at
www.sites.com, and it should give the same password information for
each.  Read the docs - they have some reasonably good examples of this
sort of thing, though less complex.

--
Chris

 
 
 

Same apache auth on multiple domains

Post by Nemesis Service » Wed, 16 Apr 2003 22:43:56


no


Quote:> Hello,

> Guys i have following problem, i have 20 sites that are protected by
> htaccess, they use same .htpasswd file, for example when users enters
> site from members.site1.com and then clicks link on members.site1.com
> that points to members.site2.com it asks for password again, is there
> way avoid this multiple time auth prompt?

> Thank You very much.

 
 
 

1. Apache -> ? multiple domains / multiple access_logs ?

Hello.

I have a UNIX box running Mandrake 7.0 and Apache, with a couple of
dozen hosted domains. I would like to provide access stats for some of
the domains, including the Default Server.

My first thought was to create seperate access_log files for those
clients who require them and keep a shared access_log for the
remainder.

Default Server  -> /logs/default_access_log
Virtual 1               -> /logs/virt_shared_access_log
Virtual 2               -> /logs/virt2_access_log
Virtuall 3      -> /logs/virt_shared_access_log
Virtual 4               -> /logs/virt_shared_access_log
Virtual 5               -> /logs/virt5_access_log

etc...... I am wondering if there is not some potential to run into
problems once I have 200+ clients for example.

I have had no luck with Webalizer trying to parse out each domain's
stats...

Is this the best method?

What else can I do?

2. Unix Jobs > Salary & Rate Reviews

3. Apache -> ? multiple domains = multiple access_logs ?

4. virtual host

5. Auth Modules for apache--->NT/2000 Domain

6. Work in Europe? (Australian)

7. Apache: Multiple auth's?

8. Suggestions needed in UI desing

9. Apache 1.3.26 with multiple auth modules

10. Apache Auth / Cookie auth

11. Apache auth & deb auth problem?

12. Solution: multiple Apache log files, multiple args to env=, multiple conditions to CustomLog directive

13. Apache SSL multiple certificate domain question.