summaryrefslogtreecommitdiff
path: root/apache2/conf.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-04-02 17:28:53 +0000
committerJonas Smedegaard <dr@jones.dk>2006-04-02 17:28:53 +0000
commit2856e091c5cbbc9f3e904abab19910eb62a6ba4c (patch)
tree83b5f9c9cbb76176e243721b2b9215890fbd9ba5 /apache2/conf.d
parent71f72a6b9d400cdacabd860bd18d9f1386c7c53d (diff)
Add php4 and suphp snippets.
Diffstat (limited to 'apache2/conf.d')
-rw-r--r--apache2/conf.d/local-php4.conf6
-rw-r--r--apache2/conf.d/local-suphp.conf11
2 files changed, 17 insertions, 0 deletions
diff --git a/apache2/conf.d/local-php4.conf b/apache2/conf.d/local-php4.conf
new file mode 100644
index 0000000..37f6d9e
--- /dev/null
+++ b/apache2/conf.d/local-php4.conf
@@ -0,0 +1,6 @@
+# This file is based on /etc/apache2/mods-available/php4.conf
+# Comment out those rules to enable the functionality only per vhost.
+<IfModule mod_php4.c>
+ AddType application/x-httpd-php .php .phtml .php3
+ AddType application/x-httpd-php-source .phps
+</IfModule>
diff --git a/apache2/conf.d/local-suphp.conf b/apache2/conf.d/local-suphp.conf
new file mode 100644
index 0000000..a249342
--- /dev/null
+++ b/apache2/conf.d/local-suphp.conf
@@ -0,0 +1,11 @@
+# This file is based on /etc/apache2/mods-available/suphp.conf
+# Comment out those rules to enable the functionality only per vhost.
+<IfModule mod_suphp.c>
+ AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
+ suPHP_AddHandler x-httpd-php
+ suPHP_Engine on
+# # Use a specific php config file (a dir which contains a php.ini file)
+# suPHP_ConfigPath /etc/php4/cgi/suphp/
+# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
+# suPHP_RemoveHandler <mime-type>
+</IfModule>