Apache Authentifizierung

Post Reply
Message
Author
kiko
Posts: 53
Joined: 13. Apr 2004 10:14

Apache Authentifizierung

#1 Post by kiko »

Hallo Leute,

ich habe zwei Verzeichnisse angelegt auf einen webServer (SuSe 7.3 Appache 1.3) auf welche je immer ein bestimmter user zugreifen kann
www.addresse/verzeichnisA hat zugriff nur UserA
www.addresse/verzeichnisB hat zugriff nur UserB usw.

Nur wenn ich das Fenster vom IE neu öffne, und die Addresse eingebe, möchte er von mir das erste mal immer zwei mal die Authentifikation... Ich muss zwei mal den username und das Passwort eingeben.... Kann mir jemand sagen woran das liegt?

Danke
Viele Späße
kiko

User avatar
scytheman
Posts: 22
Joined: 18. Sep 2004 18:03
Location: Bad Blankenburg
Contact:

#2 Post by scytheman »

http://httpd.apache.org/docs/misc/FAQ.h ... pted-twice
If the hostname under which you are accessing the server is different than the hostname specified in the ServerName directive, then depending on the setting of the UseCanonicalName directive, Apache will redirect you to a new hostname when constructing self-referential URLs. This happens, for example, in the case where you request a directory without including the trailing slash.

When this happens, Apache will ask for authentication once under the original hostname, perform the redirect, and then ask again under the new hostname. For security reasons, the browser must prompt again for the password when the host name changes.

To eliminate this problem you should
Always use the trailing slash when requesting directories;
Change the ServerName to match the name you are using in the URL; and/or
Set UseCanonicalName off.

kiko
Posts: 53
Joined: 13. Apr 2004 10:14

#3 Post by kiko »

muchas grazias :lol:
Viele Späße
kiko

Post Reply