# HG changeset patch # User IBBoard # Date 1601750485 -3600 # Node ID 6c29af16b1770c6bb87257bc15c08d6e10281948 # Parent ff228d581972d039788c564e4cdae16f8676822a Fix PHP-as-html file serving diff -r ff228d581972 -r 6c29af16b177 modules/website/files/conf.extra/html-php.conf --- 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/" diff -r ff228d581972 -r 6c29af16b177 modules/website/files/php-fpm-www.conf --- 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.