Verzeichnisse Schützen: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „==Allgemein== [http://de.selfhtml.org/servercgi/server/htaccess.htm#verzeichnisschutz] ==Nine== *Bei .htpasswd Benutzername und Passwort eingeben /var/www/dom…“ |
Keine Bearbeitungszusammenfassung |
||
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
==Allgemein== | ==Allgemein== | ||
[http://de.selfhtml.org/servercgi/server/htaccess.htm#verzeichnisschutz] | Anleitung auf Selfhtml... [http://de.selfhtml.org/servercgi/server/htaccess.htm#verzeichnisschutz] | ||
Passwort erstellen http://www.htpasswdgenerator.de/ | |||
==Nine== | ==Nine== | ||
| Zeile 11: | Zeile 13: | ||
AuthUserFile /var/www/domains/.htpasswd | AuthUserFile /var/www/domains/.htpasswd | ||
Require user wiki | Require user wiki | ||
==Synology DSM 5.0== | |||
.htaccess | |||
AuthName "zeberli" | |||
AuthType Basic | |||
AuthUserFile "/volume1/web/.htpasswd" | |||
Require valid-user Simon patrick roman Daniel Florian freelancer89 Reto Sonja | |||
Order deny,allow | |||
Deny from all | |||
Allow from 192.168 | |||
Satisfy any | |||
Änderung auf der Synology: | |||
vi /etc/httpd/conf/httpd.conf-user | |||
LoadModule authn_file_module modules/mod_authn_file.so | |||
LoadModule authn_dbm_module modules/mod_authn_dbm.so | |||
LoadModule authn_anon_module modules/mod_authn_anon.so | |||
LoadModule authn_dbd_module modules/mod_authn_dbd.so | |||
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so | |||
LoadModule authz_user_module modules/mod_authz_user.so | |||
LoadModule authz_dbm_module modules/mod_authz_dbm.so | |||
LoadModule authz_owner_module modules/mod_authz_owner.so | |||
LoadModule auth_digest_module modules/mod_auth_digest.so | |||
Apache neustarten mit: | |||
/usr/syno/sbin/synoservicecfg --restart httpd-user | |||
==IP Schutz Länder== | |||
http://incredibill.me/htaccess-block-country-ips | |||
Aktuelle Version vom 16. Mai 2015, 12:30 Uhr
Allgemein
Anleitung auf Selfhtml... [1]
Passwort erstellen http://www.htpasswdgenerator.de/
Nine
- Bei .htpasswd Benutzername und Passwort eingeben
/var/www/domains/.htpasswd wiki:esel
- .htaccess im Root Directory erstellen und folgendes hineinkopieren und pfad anpassen
AuthType Basic AuthName "Wiki" AuthUserFile /var/www/domains/.htpasswd Require user wiki
Synology DSM 5.0
.htaccess
AuthName "zeberli" AuthType Basic AuthUserFile "/volume1/web/.htpasswd" Require valid-user Simon patrick roman Daniel Florian freelancer89 Reto Sonja Order deny,allow Deny from all Allow from 192.168 Satisfy any
Änderung auf der Synology:
vi /etc/httpd/conf/httpd.conf-user
LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule auth_digest_module modules/mod_auth_digest.so
Apache neustarten mit:
/usr/syno/sbin/synoservicecfg --restart httpd-user
IP Schutz Länder
http://incredibill.me/htaccess-block-country-ips