note 92805 added to install.unix.apache2
| From: | nmmm at nmmm dot nu | Date: | Mon, 10 Aug 2009 14:27:28 +0000 |
| Subject: | note 92805 added to install.unix.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159265@lists.php.net to get a copy of this message | ||
Another interesting point with Apache 2.2 is following.
Let suppose we installed PHP as module. But for some directory, we need to use PHP as CGI (probably
because of custom configuration). This can be done using:
<FilesMatch "\.(php*|phtm|phtml|asp|aspx)$">
SetHandler none
</FilesMatch>
AddType application/x-httpd-php-custom .php
Action application/x-httpd-php-custom /cgi-bin/php-huge
Note type must be different than "application/x-httpd-php" and also you need to deactivate
the handler on sertain extention. You can do mixed configuration:
<FilesMatch "\.(php)$">
SetHandler none
</FilesMatch>
AddType application/x-httpd-php-custom .php
Action application/x-httpd-php-custom /cgi-bin/php-huge
in such case files like *.php5 and so on will be parsed via module, but *.php will go to php-huge
executable.
----
Server IP: 217.75.128.29
Probable Submitter: 85.130.92.216
----
Manual Page -- http://www.php.net/manual/en/install.unix.apache2.php
Edit -- https://master.php.net/note/edit/92805
Del: integrated -- https://master.php.net/note/delete/92805/integrated
Del: useless -- https://master.php.net/note/delete/92805/useless
Del: bad code -- https://master.php.net/note/delete/92805/bad+code
Del: spam -- https://master.php.net/note/delete/92805/spam
Del: non-english -- https://master.php.net/note/delete/92805/non-english
Del: in docs -- https://master.php.net/note/delete/92805/in+docs
Del: other reasons-- https://master.php.net/note/delete/92805
Reject -- https://master.php.net/note/reject/92805
Search -- https://master.php.net/manage/user-notes.php