Ciao a tutti,
volevo proteggere alcune directory del sito tramite autenticazione apache su DB.
Ho provato su un mio server web basato su centos e funziona correttamente con installato il modulo mod_auth_mysql e con il seguente file .htaccess:
AuthType Basic
AuthName "Area protetta"
AuthBasicAuthoritative Off
AuthMySQLHost localhost
AuthMySQLDB my_pischendi
AuthMySQLPasswordField password
AuthMySQLNameField username
AuthMySQLUserTable table_users
AuthMySqlUser pischendi
AuthMySQLPassword miapassword
AuthMySQLEnable On
AuthMySQLPwEncryption none
AuthMySQLAuthoritative On
Require valid-user
La stessa configurazione però su altervista non funziona. Mi da il seguente errore:
Error 500 :(
An error occurred.
This error may be due to an erroneus .htaccess file, added by you or by a script in the current directory.
To access this directory again you have to correct or delete the .htaccess file. You can do it from the section files management of your control panel by clicking on the gear icon.
Grazie per l'aiuto