4 231
modifications
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 123 : | Ligne 123 : | ||
# Deny access to most php project configuration files (localsettings.php, config.php but also things like config.anything.php | # Deny access to most php project configuration files (localsettings.php, config.php but also things like config.anything.php | ||
<FilesMatch "(?i)^(commonsettings|localsettings|config)(\.([a-z]|[0-9])+)*\.ph(ar|p|tml)$"> | <FilesMatch "(?i)^(config-db|wp-config|commonsettings|localsettings|config)(\.([a-z]|[0-9])+)*\.ph(ar|p|tml)$"> | ||
Require all denied | Require all denied | ||
</FilesMatch> | </FilesMatch> | ||
Ligne 306 : | Ligne 306 : | ||
Vous pouvez désactiver cette fonctionnalité (par sécurité et si vous n'en avez pas besoin) en vidant la variable suivante dans <code>/etc/php/7.4/php.ini</code> : | Vous pouvez désactiver cette fonctionnalité (par sécurité et si vous n'en avez pas besoin) en vidant la variable suivante dans <code>/etc/php/7.4/php.ini</code> : | ||
<pre>user_ini.filename =</pre> | <pre>user_ini.filename =</pre> | ||
==Attribuer un pool a une vhost== | |||
<pre> | |||
# PHP-FPM admin sock | |||
<FilesMatch ".+\.ph(ar|p|tml)$"> | |||
SetHandler "proxy:unix:/run/php/php7.4-fpm-poolname.sock|fcgi://localhost" | |||
</FilesMatch> | |||
</pre> | |||
=Note on PHP= | =Note on PHP= |