Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:apache_httpd

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
becki:linux:apache_httpd [2014-11-06 14:05]
becki
becki:linux:apache_httpd [2018-05-16 14:20] (aktuell)
becki [Protect a Directory with Digest Authentication]
Zeile 48: Zeile 48:
   * Realm: '​Digest Authentication Test' (arbitrary selectable)   * Realm: '​Digest Authentication Test' (arbitrary selectable)
   * Username: testuser   * Username: testuser
 +  * Module auth_digest_module is loaded in httpd.conf
 +  * AllowOverride directive is set to All for that direcory for for the document root in general
  
 Create password file ''​.htpasswd''​ with: Create password file ''​.htpasswd''​ with:
Zeile 73: Zeile 75:
 Note that the manual discourages to put ''​.htpasswd''​ into the same directory which is to be protected, however it seems common usage. Check at least ''​.htpasswd''​ and ''​.htaccess''​ will not be displayed in your webbrowser! Note that the manual discourages to put ''​.htpasswd''​ into the same directory which is to be protected, however it seems common usage. Check at least ''​.htpasswd''​ and ''​.htaccess''​ will not be displayed in your webbrowser!
  
-More useres can be added to ''​.htpasswd''​ with:+More useres can be added to ''​.htpasswd'' ​(or existing users modified) ​with:
   htdigest .htpasswd '​Digest Authentication Test' newusername   htdigest .htpasswd '​Digest Authentication Test' newusername
  
 More details at [[http://​httpd.apache.org/​docs/​1.3/​howto/​auth.html#​digest|Apache manual]] More details at [[http://​httpd.apache.org/​docs/​1.3/​howto/​auth.html#​digest|Apache manual]]
  
-===== Enable Directory Listing ==+===== Disable Directory Listing generally == 
 + 
 +In DocumentRoot section do 
 +<code diff> 
 +-    Options Indexes FollowSymLinks 
 ++    Options FollowSymLinks 
 +</​code>​ 
 + 
 +===== Enable Directory Listing ​for a particular Directory ​==
  
 Create an ''​.htaccess''​ file in the regarding directory and add this line: Create an ''​.htaccess''​ file in the regarding directory and add this line:
Zeile 84: Zeile 94:
  
 Note that the [[http://​httpd.apache.org/​docs/​2.2/​mod/​core.html#​allowoverride|AllowOverride Directive]] must allow this. More: [[http://​httpd.apache.org/​docs/​2.2/​howto/​htaccess.html|htaccess]],​ [[http://​httpd.apache.org/​docs/​2.2/​mod/​core.html#​options|Options]] Note that the [[http://​httpd.apache.org/​docs/​2.2/​mod/​core.html#​allowoverride|AllowOverride Directive]] must allow this. More: [[http://​httpd.apache.org/​docs/​2.2/​howto/​htaccess.html|htaccess]],​ [[http://​httpd.apache.org/​docs/​2.2/​mod/​core.html#​options|Options]]
 +
 +Fancy directory listings:
 +
 +  Include /​etc/​httpd/​extra/​httpd-autoindex.conf
  
 ===== Security Settings == ===== Security Settings ==
Zeile 108: Zeile 122:
  
 [[http://​httpd.apache.org/​docs/​2.2/​vhosts/​|Vhost documentation start]] [[http://​httpd.apache.org/​docs/​2.2/​vhosts/​|Vhost documentation start]]
 +
 +See also [[becki/​my/​linux/​caldav]]
  
 FIXME Name-based virtual hosting cannot be used with SSL secure servers. More: http://​httpd.apache.org/​docs/​2.2/​vhosts/​name-based.html FIXME Name-based virtual hosting cannot be used with SSL secure servers. More: http://​httpd.apache.org/​docs/​2.2/​vhosts/​name-based.html
becki/linux/apache_httpd.1415282732.txt.gz · Zuletzt geändert: 2014-11-06 14:05 von becki

Impressum - Datenschutzerklärung