PHP CGI-mode - Problem with Apache ForceType directive

From: Date: Tue, 04 Sep 2001 19:23:18 +0000
Subject: PHP CGI-mode - Problem with Apache ForceType directive
Groups: php.windows 
Request: Send a blank email to php-windows+get-9187@lists.php.net to get a copy of this message
Hello everybody. I'm having a problem with the Apache ForceType directive when running PHP in CGI mode. The goal is to be able to use URL like "/local/param1/val1/param2/val2", have them all run the same PHP script (local), and have the script parse out the parameters and values (all of this to be more compatible with search engine 'bots.) When I do this with PHP as a module, it works fine. When I do it in CGI-mode though, it results in a 404-not found error. I know that the Location block that the ForceType directive is in is being processed by Apache because if I change the access for the block to deny all, I get a non-allowed error instead. Here is my configuration: Windows 2000 Professional-Sp2 Apache 1.3.20 PHP 4.0.6/CGI-mode The Location block looks like this: <Location /source> ForceType application/x=httpd-php </Location> Thanks in advance, Dave ---------------------------------------------------------------------------- David M. Patterson Voice: 714-532-4492 Consulting Software Engineer Fax: 253-679-8673 Web/Php Development email: phpdev@dplhenterprises.com "Artificial Intelligence is no match for natural stupidity" ----------------------------------------------------------------------------

« previous php.windows (#9187) next »