httpd.conf mit IP-Freigabe möglich?
16 hours ago
Hallo,
der Passwort-Schutz mit Nutzer/Password über die httpd.conf funktioniert. Das passt.
Da wir eine feste IP-Adresse im Unternehmen nutzen, würde ich gern unsere Nutzer vom Login "befreien".
Laut Web-Recherche sollte es wie folgt funktionieren.
Im HomeOffice kann ich es aktuell nicht nachvollziehen.. Jemand eine Idee? Ist der Code so korrekt?
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_user_module modules/mod_authz_user.so
<Directory /home/www/public_html/portal>
AuthType Basic
AuthName "Passwort Bereich"
AuthUserFile /home/www/etc/passwortdatei.txt
<RequireAny>
Require valid-user
Require ip 91.123.123.123
</RequireAny>
</Directory>
Danke
Gruß Micha
27
1
This could help you too
3 years ago
245
0
2
39
0
3
6 years ago
873
0
7
Solved
786
0
2
You might also be interested in
Request purchasing advice
Fill out our online contact form quickly and easily so that we can advise you personally in a timely manner.
View offers
Informieren Sie sich über unsere aktuellen Website-Angebote.
16 hours ago
Wenn ich das Modul
(laut https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#requireany ) einbinde:
erscheint im Browser dieser Fehler:
0
Unlogged in user
Ask
from