Tak se snazim dat www stranky pod login a heslo tak jak jsem to mel v minulych verzich, ale porad neco spatne. cetl jsem ze od verze apache 2.4 je jinaci styl upravy..
/etc/apache2/sites-enable/@000-default.conf jsem pridal
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
zapl jsem
a2enmod rewrite
.htaccess
AuthUserFile /var/www/html/.htpasswd
AuthGroupFile /dev/null
AuthName "Nazev tajne casti stranek"
AuthType Basic
Require valid-user
Order deny,allow
RewriteEngine on
ale jakmile tohle udelam tak www stranka pise
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.18 (Ubuntu) Server at 192.168.86.77 Port 80
jakmile umazu v "/etc/apache2/sites-enable/@000-default.conf" to co jsem pridal tak vse jede
PS: Vyreseno
z .htaccess umazat radek
AuthGroupFile /dev/null