Thread Auto Login auf einer Basic Auth seite (9 answers)
Opened by phonk at 2007-10-23 13:28

bloonix
 2007-10-23 15:25
#101233 #101233
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
    AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/apache2/user.pwd
Require user foo
Order deny,allow
Deny from all
Allow from localhost
Satisfy any


Bitte beachte hier die Kombination von "Allow" und "Satisfy".
Die Regel "Satisfy any" besagt, das eine der beiden Voraus-
setzungen erfüllt sein muss... entweder localhost oder die
Basic Authentifizierung. In diesem Beispiel braucht sich der
Benutzer, der Anfragen von localhost stellt, sich nicht
authentifizieren, aber alle anderen. Du kannst also statt
localhost das interne Netz freigeben ala

Code: (dl )
Allow from 192.168


Schau aber nochmal in die Doku...

http://buecher.lingoworld.de/apache2/showdir.php?id=680
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Auto Login auf einer Basic Auth seite