From 2856e091c5cbbc9f3e904abab19910eb62a6ba4c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 2 Apr 2006 17:28:53 +0000 Subject: Add php4 and suphp snippets. --- apache2/conf.d/local-php4.conf | 6 ++++++ apache2/conf.d/local-suphp.conf | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 apache2/conf.d/local-php4.conf create mode 100644 apache2/conf.d/local-suphp.conf 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. + + AddType application/x-httpd-php .php .phtml .php3 + AddType application/x-httpd-php-source .phps + 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. + + 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 . +# suPHP_RemoveHandler + -- cgit v1.2.3