5 kx #
5 kx # mod_php - PHP Hypertext Preprocessor module
5 kx #
5 kx
5 kx # Load the PHP module:
5 kx LoadModule php_module lib@LIBDIRSUFFIX@/httpd/modules/libphp.so
5 kx
5 kx # Tell Apache to feed all *.php files through PHP. If you'd like to
5 kx # parse PHP embedded in files with different extensions, comment out
5 kx # these lines and see the example below.
5 kx <FilesMatch \.php$>
5 kx SetHandler application/x-httpd-php
5 kx </FilesMatch>
5 kx
5 kx # Tell Apache to feed all *.php, *.html, and *.htm files through
5 kx # the PHP module. Add or subtract extensions here as desired. Please
5 kx # note that running pages through PHP for no reason can be both slow
5 kx # and insecure, so be sure to know what you're doing. It's a convenient
5 kx # shortcut, but probably isn't suitible for high-traffic sites if you
5 kx # write any of your pages in straight HTML.
5 kx #<FilesMatch "\.(php|html|htm)$">
5 kx # SetHandler application/x-httpd-php
5 kx #</FilesMatch>
5 kx
5 kx # This will display PHP files in colored syntax form. Use with caution.
5 kx #<FilesMatch "\.phps$">
5 kx # SetHandler application/x-httpd-php-source
5 kx #</FilesMatch>