Mercurial > repos > other > Puppet
view modules/website/files/conf.extra/html-php.conf @ 358:6c29af16b177
Fix PHP-as-html file serving
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 03 Oct 2020 19:41:25 +0100 |
parents | aad5c00b0525 |
children | f22809cba7af |
line wrap: on
line source
# Make sure we have PHP Include conf.extra/php.conf # # Cause the PHP interpreter to handle files with a .html extension. # <FilesMatch "\.html$"> AddType text/html .html #If we're doing HTML files as PHP then swap the priority for directory indexing DirectoryIndex /index.html /index.php SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/" </FilesMatch>