.htaccess - Problem

Alles, was den Apache betrifft, kann hier besprochen werden.

.htaccess - Problem

Postby yenice » 07. March 2010 10:31

Hi Leute ich habe hier ein kleines Problem.
Ich möchte ein Verzeichnis im Document-Root, also im htdocs, einer bestimmten IP-Adresse freigeben. Der Rest muss sich authentifizieren.
Meine .htaccess sieht folgendermaßen aus

Code: Select all
AuthName "Secret"
AuthType Basic
AuthUserFile C:\xampp\htdocs\.htpasswd
Require valid-user
Order deny,allow
Deny from all
Allow from 192.168.5.
Satisfy Any


Wenn ich das so mache prüft er garnicht nach der IP-Adresse, die erlaubt ist, sondern verlangt direkt erstmal das Passwort.
AllowOverride in de httpd.conf alle drei auf all gesetzt, neugestartet, imer noch das gleiche Probem. Was mache ich denn falsch?
yenice
 
Posts: 5
Joined: 07. March 2010 10:14

Return to Apache

Who is online

Users browsing this forum: No registered users and 22 guests