summaryrefslogtreecommitdiffstats
path: root/testing/source/php/mod_php.conf.example
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-11-25 19:44:38 +0000
committer Eric Hameleers <alien@slackware.com>2023-11-25 20:59:35 +0100
commitd39761cf9b4205e07a9f5f0f3540281299175c12 (patch)
tree16e17949ed0a60dd89747f18c00679cd5d3c5f31 /testing/source/php/mod_php.conf.example
parent616339b7f26fafbbbcfd9f5e6282d1bce89e0f2a (diff)
downloadcurrent-d39761cf9b4205e07a9f5f0f3540281299175c12.tar.gz
current-d39761cf9b4205e07a9f5f0f3540281299175c12.tar.xz
Sat Nov 25 19:44:38 UTC 202320231125194438
a/shadow-4.14.2-x86_64-2.txz: Rebuilt. adduser: fixed chown syntax to silence warnings. Thanks to Stuart Winter. l/gi-docgen-2023.3-x86_64-1.txz: Added. Thanks to Heinz Wiesinger. l/python-smartypants-2.0.1-x86_64-1.txz: Added. Needed for gi-docgen. Thanks to Heinz Wiesinger. l/python-toml-0.10.2-x86_64-1.txz: Added. Needed for gi-docgen. Thanks to Heinz Wiesinger. l/python-typogrify-2.0.7-x86_64-1.txz: Added. Needed for gi-docgen. Thanks to Heinz Wiesinger. x/xdg-desktop-portal-1.18.2-x86_64-1.txz: Upgraded. Thanks to 0XBF. testing/packages/php-8.3.0-x86_64-1.txz: Added.
Diffstat (limited to 'testing/source/php/mod_php.conf.example')
-rw-r--r--testing/source/php/mod_php.conf.example29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/source/php/mod_php.conf.example b/testing/source/php/mod_php.conf.example
new file mode 100644
index 000000000..6ca1d3a87
--- /dev/null
+++ b/testing/source/php/mod_php.conf.example
@@ -0,0 +1,29 @@
+#
+# mod_php - PHP Hypertext Preprocessor module
+#
+
+# Load the PHP module:
+LoadModule php_module lib/httpd/modules/libphp.so
+
+# Tell Apache to feed all *.php files through PHP. If you'd like to
+# parse PHP embedded in files with different extensions, comment out
+# these lines and see the example below.
+<FilesMatch \.php$>
+ SetHandler application/x-httpd-php
+</FilesMatch>
+
+# Tell Apache to feed all *.php, *.html, and *.htm files through
+# the PHP module. Add or subtract extensions here as desired. Please
+# note that running pages through PHP for no reason can be both slow
+# and insecure, so be sure to know what you're doing. It's a convenient
+# shortcut, but probably isn't suitible for high-traffic sites if you
+# write any of your pages in straight HTML.
+#<FilesMatch "\.(php|html|htm)$">
+# SetHandler application/x-httpd-php
+#</FilesMatch>
+
+# This will display PHP files in colored syntax form. Use with caution.
+#<FilesMatch "\.phps$">
+# SetHandler application/x-httpd-php-source
+#</FilesMatch>
+