Pages : 1
#1 Le 06/09/2006, à 14:16
- kliketi
.htaccess de phpMyAdmin
bonjour
J'ai installé phpMyadmin dans /var/www/ et me retrouve avec ce htaccess par défaut:
DirectoryIndex index.php
Options +FollowSymLinks -Indexes
<IfModule mod_mime.c>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
<IfModule !mod_php4.c>
<IfModule !mod_php5.c>
<IfModule !mod_fastcgi.c>
<IfModule !mod_fcgid.c>
<IfModule mod_actions.c>
<IfModule mod_cgi.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
<IfModule mod_cgid.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
</IfModule>
# Deny config.inc.php file
<Files config.inc.php>
Order deny,allow
Deny from all
</Files>
# Authorize for setup
<Files setup.php>
<IfModule mod_auth.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Files>
Ça me semble pas sécure... je dois pas rajouter ou enlever des lignes en cas d'exploitation à distance de phpMyadmin ?
Merci.
Hors ligne
Pages : 1