diff options
author | koitsu <koitsu@FreeBSD.org> | 2007-12-13 01:27:49 +0800 |
---|---|---|
committer | koitsu <koitsu@FreeBSD.org> | 2007-12-13 01:27:49 +0800 |
commit | 5dd69f877430fc3bf936768603eb450356064e5d (patch) | |
tree | 50a91ed6a5cf9baa98c1a88fa0a3139de1a946db /www | |
parent | 3c9c2320e3b110ffa57acfb22f074daf0d799435 (diff) | |
download | freebsd-ports-gnome-5dd69f877430fc3bf936768603eb450356064e5d.tar.gz freebsd-ports-gnome-5dd69f877430fc3bf936768603eb450356064e5d.tar.zst freebsd-ports-gnome-5dd69f877430fc3bf936768603eb450356064e5d.zip |
Fix for previous commit; user reported privately that Apache would print
"Cannot get media type from 'x-httpd-php'" as a warning in the ErrorLog. Issue
caused by incorrect AddType syntax.
This commit fixes the pkg-message syntax described, as well as the example
suphp.conf to reflect the proper type (value "application/x-httpd-php", not
"x-httpd-php").
Submitted by: <dark@aspu.ru>
Diffstat (limited to 'www')
-rw-r--r-- | www/suphp/files/patch-doc::suphp.conf-example | 4 | ||||
-rw-r--r-- | www/suphp/pkg-message | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/www/suphp/files/patch-doc::suphp.conf-example b/www/suphp/files/patch-doc::suphp.conf-example index c1c1d46dd23c..456109bc1e1f 100644 --- a/www/suphp/files/patch-doc::suphp.conf-example +++ b/www/suphp/files/patch-doc::suphp.conf-example @@ -1,5 +1,5 @@ --- doc/suphp.conf-example.orig 2005-11-26 11:29:02.000000000 -0800 -+++ doc/suphp.conf-example 2007-11-11 02:36:02.000000000 -0800 ++++ doc/suphp.conf-example 2007-12-12 09:21:02.000000000 -0800 @@ -6,7 +6,7 @@ loglevel=info @@ -24,7 +24,7 @@ [handlers] ;Handler for php-scripts -x-httpd-php=php:/usr/bin/php -+x-httpd-php=php:/usr/local/bin/php-cgi ++application/x-httpd-php=php:/usr/local/bin/php-cgi ;Handler for CGI-scripts x-suphp-cgi=execute:!self diff --git a/www/suphp/pkg-message b/www/suphp/pkg-message index 45f278a74ba7..789b6aa7db88 100644 --- a/www/suphp/pkg-message +++ b/www/suphp/pkg-message @@ -38,8 +38,8 @@ you used the following Apache directives: In suPHP 0.6.x, you should use the following: suPHP_Engine on - AddType x-httpd-php .php - suPHP_AddHandler x-httpd-php + AddType application/x-httpd-php .php + suPHP_AddHandler application/x-httpd-php Otherwise, Apache will begin serving PHP files as downloadable content, rather than parse them with the PHP interpreter. |