annotate modules/website/files/php.conf @ 174:1457b5365c79 puppet-3.6

Add extra headers for improved security practice
author IBBoard <dev@ibboard.co.uk>
date Sat, 03 Mar 2018 14:20:06 +0000
parents 5967c1b18860
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 #Webtatic PHP config - note the different files used!
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 #
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 # PHP is an HTML-embedded scripting language which attempts to make it
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 # easy for developers to write dynamically generated webpages.
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 #
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 <IfModule !worker.c>
110
be2b30b17a4c Switch to PHP 7 from Webtatic
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
8 LoadModule php7_module modules/libphp7.so
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 </IfModule>
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 <IfModule worker.c>
110
be2b30b17a4c Switch to PHP 7 from Webtatic
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
11 LoadModule php7_module modules/libphp7-zts.so
0
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 </IfModule>
956e484adc12 Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13
112
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
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: 110
diff changeset
15 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
16 # Cause the PHP interpreter to handle files with a .php extension.
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
17 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
18 AddHandler php7-script .php
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
19 AddType text/html .php
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
20
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
21 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
22 # Add index.php to the list of files that will be served as directory
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
23 # indexes.
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
24 #
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
25 DirectoryIndex index.php
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
26 </IfModule>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
27 <IfModule !php7_module>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
28 <FilesMatch "\.php$">
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
29 Require all denied
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
30 </FilesMatch>
5967c1b18860 Make sure that we don't leak PHP source code if something breaks
IBBoard <dev@ibboard.co.uk>
parents: 110
diff changeset
31 </IfModule>