Différences entre les versions de « Htaccess »
De BlaxWiki
Aller à la navigationAller à la recherche| Ligne 17 : | Ligne 17 : | ||
Allow from 212.43.232.112/28 212.43.232.64/27 | Allow from 212.43.232.112/28 212.43.232.64/27 | ||
</pre> | </pre> | ||
Authentification par base mysql | |||
<pre> | |||
AuthType Basic | |||
AuthName "Authentification 3ZAX Demo" | |||
AuthMYSQL on | |||
AuthMySQL_Authoritative on | |||
AuthMYSQL_Host localhost | |||
AuthMYSQL_Username 3zax_sql_demo | |||
AuthMYSQL_Password passwd | |||
AuthMYSQL_DB 3zax_baz_00 | |||
AuthMySQL_Password_Table 3zax_demo_ftpuser | |||
AuthMySQL_Username_Field userid | |||
AuthMySQL_Password_Field passwd | |||
AuthMYSQL_Encrypted_Passwords off | |||
AuthName "private" | |||
AuthType Basic | |||
AuthBasicAuthoritative Off | |||
AuthUserFile /dev/null | |||
require valid-user | |||
</pre> | |||
[[Catégorie:Software]] | [[Catégorie:Software]] | ||
Version du 30 janvier 2014 à 09:50
Générateur de .htaccess (rewrite rule, auth, page 404... ) : http://cooletips.de/htaccess/
Authentification login / mdp
AuthType Basic AuthName "Vous devez vous AuthTextUserFile users.txt AuthTextCrypt Off Require valid-user
Restriction sur l'ip
Deny from all Allow from 212.43.232.112/28 212.43.232.64/27
Authentification par base mysql
AuthType Basic AuthName "Authentification 3ZAX Demo" AuthMYSQL on AuthMySQL_Authoritative on AuthMYSQL_Host localhost AuthMYSQL_Username 3zax_sql_demo AuthMYSQL_Password passwd AuthMYSQL_DB 3zax_baz_00 AuthMySQL_Password_Table 3zax_demo_ftpuser AuthMySQL_Username_Field userid AuthMySQL_Password_Field passwd AuthMYSQL_Encrypted_Passwords off AuthName "private" AuthType Basic AuthBasicAuthoritative Off AuthUserFile /dev/null require valid-user