OVH Community, votre nouvel espace communautaire.

.htaccess et MySql


L.Boggio
13/09/2006, 13h08
Comme par-exemple un script qui, à-partir des infos de la DB, créest le .htaccess qui va bien ?

cider
13/09/2006, 13h01
ok, merci...

Je vais donc chercher une autre solution ;-)

Shadow aok
08/09/2006, 17h33
Il faut mod_auth_mysql d'activé et il n'est pas installé avec apache sur les mutualisés.
Seul mod_auth l'est.
http://90plan.ovh.net/infos/apache.cgi

L.Boggio
08/09/2006, 17h13
Ah oué, joli... Après, savoir si nos mutus le supportent... Tu connais les pré-requis de ce dispositif ?

cider
08/09/2006, 13h46
Aller chercher les info user : pass dans une db mysql plutôt que dans le fichier .htpasswd...

L.Boggio
08/09/2006, 13h14
Et c'est censé faire quoi, tout ça ??

cider
08/09/2006, 13h00
Bonjour à tous,

Voici la config de mon fichier .htaccess:
AuthType Basic

AuthName "This area is restricted, please authenticate yourself"

Auth_MYSQLhost NomServer
Auth_MYSQLusername NomUserDb
Auth_MYSQLpassword PassUserDb
Auth_MYSQLdatabase NomDb
Auth_MYSQLpwd_table NomTable
Auth_MYSQLuid_field NomChampUser
Auth_MYSQLpwd_field NomChampPass
Auth_MYSQL_EncryptedPasswords off

require valid-user


order allow,deny
deny from all


Voici le réultat:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, tech@ovh.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Au niveau des guides je ne vois pas qu'on parle de ce type de config pour le fichier .htaccess...Restriction OVH?

D'avance merci pour votre aide.

Cédric.