annotate modules/website/files/conf.extra/html-php.conf @ 112:5967c1b18860 puppet-3.6

Make sure that we don't leak PHP source code if something breaks
author IBBoard <dev@ibboard.co.uk>
date Sat, 04 Jun 2016 14:06:15 +0100
parents 440ea809487c
children aad5c00b0525
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 # Make sure we have PHP
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 Include conf.extra/php.conf
112
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
3
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
4 <IfModule php7_module>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
5 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
6 # Cause the PHP interpreter to handle files with a .html extension.
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
7 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
8 AddHandler php7-script .html
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
9 AddType text/html .html
10
440ea809487c Add missing php.conf and make html-php config try index.html first as index
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
10
112
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
11 #If we're doing HTML files as PHP then swap the priority for directory indexing
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
12 DirectoryIndex index.html index.php
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
13 </IfModule>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
14 <IfModule !php7_module>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
15 <FilesMatch "\.html$">
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
16 Require all denied
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
17 </FilesMatch>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 10
diff changeset
18 </IfModule>