Mercurial > repos > other > Puppet
changeset 358:6c29af16b177
Fix PHP-as-html file serving
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 03 Oct 2020 19:41:25 +0100 |
parents | ff228d581972 |
children | 05cad5ba9506 |
files | modules/website/files/conf.extra/html-php.conf modules/website/files/php-fpm-www.conf |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/website/files/conf.extra/html-php.conf Sat Oct 03 19:33:11 2020 +0100 +++ b/modules/website/files/conf.extra/html-php.conf Sat Oct 03 19:41:25 2020 +0100 @@ -10,5 +10,5 @@ #If we're doing HTML files as PHP then swap the priority for directory indexing DirectoryIndex /index.html /index.php - SetHandler "proxy:fcgi://localhost:9000" + SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/" </FilesMatch>
--- a/modules/website/files/php-fpm-www.conf Sat Oct 03 19:33:11 2020 +0100 +++ b/modules/website/files/php-fpm-www.conf Sat Oct 03 19:41:25 2020 +0100 @@ -389,6 +389,7 @@ ; Note: set an empty value to allow all extensions. ; Default Value: .php ;security.limit_extensions = .php .php3 .php4 .php5 .php7 +security.limit_extensions = .php .html ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment.