Mercurial > repos > other > Puppet
view modules/website/files/conf.extra/html-php.conf @ 117:3fdde0638538 puppet-3.6
Redirect dumb bots that removed the ID number to the main module page
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 08 Jul 2016 20:34:29 +0100 |
parents | 5967c1b18860 |
children | aad5c00b0525 |
line wrap: on
line source
# Make sure we have PHP Include conf.extra/php.conf <IfModule php7_module> # # Cause the PHP interpreter to handle files with a .html extension. # AddHandler php7-script .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 </IfModule> <IfModule !php7_module> <FilesMatch "\.html$"> Require all denied </FilesMatch> </IfModule>