diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-06-30 10:05:53 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-06-30 10:05:53 +0000 |
commit | bf0c8f4c5fed307ce163852e1c042c3490957822 (patch) | |
tree | 41e57878bfd2de5fd6a1056c40f2b68742678293 /dev-php/mod_php/files/70_mod_php.conf | |
parent | big updates (diff) | |
download | gentoo-2-bf0c8f4c5fed307ce163852e1c042c3490957822.tar.gz gentoo-2-bf0c8f4c5fed307ce163852e1c042c3490957822.tar.bz2 gentoo-2-bf0c8f4c5fed307ce163852e1c042c3490957822.zip |
big updates
Diffstat (limited to 'dev-php/mod_php/files/70_mod_php.conf')
-rw-r--r-- | dev-php/mod_php/files/70_mod_php.conf | 71 |
1 files changed, 38 insertions, 33 deletions
diff --git a/dev-php/mod_php/files/70_mod_php.conf b/dev-php/mod_php/files/70_mod_php.conf index 2088bbb78c2b..b06b9cd75742 100644 --- a/dev-php/mod_php/files/70_mod_php.conf +++ b/dev-php/mod_php/files/70_mod_php.conf @@ -1,34 +1,39 @@ -<IfDefine PHP> - <IfModule !mod_php4.c> - LoadModule php4_module extramodules/libphp4.so - </IfModule> -</IfDefine> +<IfDefine PHP4> + + # Load the module first + <IfModule !mod_php4.c> + LoadModule php4_module extramodules/libphp4.so + </IfModule> + + # Set it to handle the files + <IfModule mod_mime.c> + AddType application/x-httpd-php .php + AddType application/x-httpd-php .phtml + AddType application/x-httpd-php .php3 + AddType application/x-httpd-php .php4 + AddType application/x-httpd-php-source .phps + </IfModule> + + # Fix some bugs + <Files *.php> + LimitRequestBody 524288 + RequestHeader unset If-Modified-Since + </Files> + <Files *.php3> + LimitRequestBody 524288 + RequestHeader unset If-Modified-Since + </Files> + <Files *.php4> + LimitRequestBody 524288 + RequestHeader unset If-Modified-Since + </Files> + <Files *.phps> + LimitRequestBody 524288 + RequestHeader unset If-Modified-Since + </Files> + <Files *.phtml> + LimitRequestBody 524288 + RequestHeader unset If-Modified-Since + </Files> -<IfModule mod_mime.c> - AddType application/x-httpd-php .php - AddType application/x-httpd-php .phtml - AddType application/x-httpd-php .php3 - AddType application/x-httpd-php .php4 - AddType application/x-httpd-php-source .phps -</IfModule> - -<Files *.php> - LimitRequestBody 524288 - RequestHeader unset If-Modified-Since -</Files> -<Files *.php3> - LimitRequestBody 524288 - RequestHeader unset If-Modified-Since -</Files> -<Files *.php4> - LimitRequestBody 524288 - RequestHeader unset If-Modified-Since -</Files> -<Files *.phps> - LimitRequestBody 524288 - RequestHeader unset If-Modified-Since -</Files> -<Files *.phtml> - LimitRequestBody 524288 - RequestHeader unset If-Modified-Since -</Files> +</IfDefine4> |