Zum Inhalt springen

Verzeichnisse Schützen: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
==Allgemein==
==Allgemein==
Anleitung auf Selfhtml... [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/
Passwort erstellen http://www.htpasswdgenerator.de/


Zeile 41: Zeile 42:
Apache neustarten mit:
Apache neustarten mit:
   /usr/syno/sbin/synoservicecfg --restart httpd-user
   /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