Frage zu htaccess bitte Hilfe

Apache, Lighttpd, nginx, Cherokee
Post Reply
ralfbonn
Posts: 4
Joined: 2004-02-06 15:33
Location: bonn18.de
 

Frage zu htaccess bitte Hilfe

Post by ralfbonn »

In einem geschützten Verzeichnis liegt diese htaccess. Die IPs läßt
htaccess ohne Probleme rein, nun wollte ich Erweitern auf eine
Domain die auch Zugriff haben darf, aber funktioniert nicht :-))

ErrorDocument 500 http://domain.de/500.html
ErrorDocument 403 http://domain.de/403.html
ErrorDocument 404 http://domain.de/404.html
ErrorDocument 401 http://domain.de/401.html
AuthName 'member geschuetzter Bereich'
AuthType Basic
deny from all
allow from 62.104.212.116
allow from 83.129.148.75
allow from 80.190.249.229
allow from .domain2.de

könntet Ihr mir einen Tipp geben was hierin fehlt ?

Danke im Voraus !
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: Frage zu htaccess bitte Hilfe

Post by dodolin »

Ich glaube eher, da ist was zuviel. ;)
Wenn das nur IP-basiert sein soll, warum dann AuthType und AuthName? Wenn doch, wo ist das PasswordFile?
ralfbonn
Posts: 4
Joined: 2004-02-06 15:33
Location: bonn18.de
 

pw- file liegt woanders

Post by ralfbonn »

die pw Abfrage müßte hier nicht hinein, eine php seite fragt die Berechtigung irgendwo ab und trägt bei festgestellter Berechtigung die Kunden IP in die htaccess hinein, das funktioniert auch gut ( Dazu kommt bei Eintrag einer IP noch ein Zeitstempel wie lange gültig ).

Meine Blokade im Kopf ist, ich möchte schliesslich mit / über eine
andere Domain ebenfalls Zugriff haben und hatte eingetippt
".domain2.de" , den Zugriff verweigert htaccess.

Grüsse
ralfbonn
Posts: 4
Joined: 2004-02-06 15:33
Location: bonn18.de
 

Danke der Fehler ist aufgeklärt

Post by ralfbonn »

in vielen Foren wurde gesagt

allow from .domain2.de

DAS IST FALSCH DER PUNKT DAVOR MUSS WECH

allow from domain2.de

so geht es nun gott sei dank
Post Reply