Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Ubuntu 16.04 a .htaccess  (Přečteno 5124 krát)

Kony.cz

  • Aktivní člen
  • *
  • Příspěvků: 289
Ubuntu 16.04 a .htaccess
« kdy: 26 Ledna 2018, 15:19:00 »
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

Kód: [Vybrat]
    <Directory /var/www/html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted

zapl jsem
Kód: [Vybrat]
a2enmod rewrite
.htaccess
Kód: [Vybrat]
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

Kód: [Vybrat]
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
Kód: [Vybrat]
AuthGroupFile /dev/null
« Poslední změna: 26 Ledna 2018, 15:26:48 od Kony.cz »

 

Provoz zaštiťuje spolek OpenAlt.