source: npl/internetserver/php/mod_php.conf.example

Last change on this file was f33f781, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

php7 and deps

  • Property mode set to 100644
File size: 1022 bytes
Line 
1#
2# mod_php - PHP Hypertext Preprocessor module
3#
4
5# Load the PHP module:
6LoadModule php7_module lib/httpd/modules/libphp7.so
7
8# Tell Apache to feed all *.php files through PHP.  If you'd like to
9# parse PHP embedded in files with different extensions, comment out
10# these lines and see the example below.
11<FilesMatch \.php$>
12    SetHandler application/x-httpd-php
13</FilesMatch>
14
15# Tell Apache to feed all *.php, *.html, and *.htm files through
16# the PHP module.  Add or subtract extensions here as desired.  Please
17# note that running pages through PHP for no reason can be both slow
18# and insecure, so be sure to know what you're doing.  It's a convenient
19# shortcut, but probably isn't suitible for high-traffic sites if you
20# write any of your pages in straight HTML.
21#<FilesMatch "\.(php|html|htm)$">
22#    SetHandler application/x-httpd-php
23#</FilesMatch>
24
25# This will display PHP files in colored syntax form.  Use with caution.
26#<FilesMatch "\.phps$">
27#    SetHandler application/x-httpd-php-source
28#</FilesMatch>
29
Note: See TracBrowser for help on using the repository browser.