Apache auth basic file

Aus Xinux Wiki
Version vom 23. September 2015, 16:15 Uhr von 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…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
  • 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>