httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: [users@httpd] debugging fastcgi/ACTION directive in Apache Config
Date Sat, 30 Aug 2008 21:10:44 GMT
On Sat, Aug 30, 2008 at 3:12 PM, Jay Sprenkle <jsprenkl@reddawn.net> wrote:
> <location /Debug>
> SetHandler fastcgi-script
> </location>

Inherits Options +ExecCGI from somewhere?

> Action fastcgi-test /Debug/pluwt.exe
> AddHandler fastcgi-test .fcgi


> If I then try
> http://localhost:8080/test.fcgi
> The log tells me apache can't find "test.fcgi" in my root directory.

It does have to be in your docroot in this example --  Is it there?

> The various bits of documentation are contradictory about needing to use a
> mime type instead of a user created handler with the action directive.
> I tried that as well with no success.

I had a config laying around using the "invent a pseudo mime-type
form" with AddType  I was able to change it to the handler-style
instead and it worked just fine.

It looks just the same as yours, I'm requesting /foo/index.php which
is found via an Alias directive and passed to the thing living in the
fastcgi-script location.


# shell script wrapper around php
FastCGIServer /stuff/cgi-bin/php-fastcgi -processes 4 -flush

# where the actual fastcgi, the php interpreter, lives
ScriptAlias /fcgi-bin  /stuff/cgi-bin
<Location /fcgi-bin>
  Options ExecCGi
  SetHandler fastcgi-script
</Location>

Action my-fastcgi /fcgi-bin/php-fastcgi
AddHandler my-fastcgi .php

Alias /foo /usr/local/foo



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message