Mercurial > repos > other > Puppet
view modules/website/files/php.conf @ 257:675c1cc61eaf
Update Apache module to get CentOS 8 support
Unfortunately it only fixes some bits. mod_wsgi still needs
other approaches
This also overrides the vhost modification to make them come last
in the import order (after module loading)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Dec 2019 14:43:29 -0500 |
parents | 5967c1b18860 |
children | aad5c00b0525 |
line wrap: on
line source
#Webtatic PHP config - note the different files used! # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # <IfModule !worker.c> LoadModule php7_module modules/libphp7.so </IfModule> <IfModule worker.c> LoadModule php7_module modules/libphp7-zts.so </IfModule> <IfModule php7_module> # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php7-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php </IfModule> <IfModule !php7_module> <FilesMatch "\.php$"> Require all denied </FilesMatch> </IfModule>