Apache auth basic file: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „*htpasswd -c /etc/apache2/passwords xinux *htpasswd /etc/apache2/passwords thomas <pre> <VirtualHost *:80> ServerAdmin webmaster@localhost D…“) |
(kein Unterschied)
|
Aktuelle Version vom 23. September 2015, 16:15 Uhr
- htpasswd -c /etc/apache2/passwords xinux
- htpasswd /etc/apache2/passwords thomas
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
AuthType Basic
AuthName "Restricted Area"
AuthBasicProvider file
AuthUserFile /etc/apache2/passwords
require valid-user
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>