You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Covington, Chris" <cc...@plusone.com> on 2005/03/14 19:23:34 UTC

[users@httpd] fastcgi problem with 2.0.52 & gentoo linux

Hi all,

I'm trying to get Request Tracker 3.2.1 running on 2.0.52 (Gentoo linux)
using fastCGI.  The only way I can get it to work is to comment out the
following default apache2 gentoo directives:

#<Directory />
#  Options -All -Multiviews
#  AllowOverride None
#  <IfModule mod_access.c>
#    Order deny,allow
#    deny from all
#  </IfModule>
#</Directory>

Or else the following RT directives as per their directions:

<Directory /var/www/localhost/htdocs/rt>
    Options FollowSymLinks ExecCGI
    AllowOverride None
</Directory>

Alias /NoAuth/images/ /var/www/localhost/htdocs/rt/NoAuth/images/
FastCgiIpcDir /tmp
FastCgiServer /usr/bin/mason_handler.fcgi -idle-timeout 120 -processes 4
AddHandler fastcgi-script fcgi
ScriptAlias /rt /usr/bin/mason_handler.fcgi


will give a "client denied by server configuration":

[Mon Mar 14 11:47:01 2005] [notice] FastCGI: process manager initialized
(pid 23438)
[Mon Mar 14 11:47:01 2005] [warn] FastCGI: server
"/usr/bin/mason_handler.fcgi" started (pid 23439)
[Mon Mar 14 11:47:01 2005] [notice] Apache configured -- resuming normal
operations
[Mon Mar 14 11:47:02 2005] [warn] FastCGI: server
"/usr/bin/mason_handler.fcgi" started (pid 23445)
[Mon Mar 14 11:47:03 2005] [warn] FastCGI: server
"/usr/bin/mason_handler.fcgi" started (pid 23446)
[Mon Mar 14 11:47:04 2005] [warn] FastCGI: server
"/usr/bin/mason_handler.fcgi" started (pid 23448)
[Mon Mar 14 11:47:18 2005] [error] [client 192.168.2.50] client denied
by server configuration: /usr/bin/mason_handler.fcgi

My question is, how can I preserve the commented out gentoo-default
directives but still get RT to work?  

---
Chris Covington
IT
Plus One Health Management
75 Maiden Lane Suite 801
NY, NY 10038
646-312-6269
http://www.plusoneactive.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


Re: [users@httpd] fastcgi problem with 2.0.52 & gentoo linux

Posted by Joshua Slive <js...@gmail.com>.
On Mon, 14 Mar 2005 13:23:34 -0500, Covington, Chris
<cc...@plusone.com> wrote:
> Hi all,
> 
> I'm trying to get Request Tracker 3.2.1 running on 2.0.52 (Gentoo linux)
> using fastCGI.  The only way I can get it to work is to comment out the
> following default apache2 gentoo directives:
> 
> #<Directory />
> #  Options -All -Multiviews
> #  AllowOverride None
> #  <IfModule mod_access.c>
> #    Order deny,allow
> #    deny from all
> #  </IfModule>
> #</Directory>
> 

> [Mon Mar 14 11:47:18 2005] [error] [client 192.168.2.50] client denied
> by server configuration: /usr/bin/mason_handler.fcgi
> 
> My question is, how can I preserve the commented out gentoo-default
> directives but still get RT to work?

Note the "deny from all" in the top section.  You need to undo that with a 
<Directory /usr/bin>
Order allow,deny
Allow from all
</Directory>
or somethine like that.

I do find it rather strange that rt keeps its cgi script is /usr/bin. 
Usually you want your cgi scripts in a more isolated location so that
you don't need to open permissions on /usr/bin as I suggest above.

Joshua.

---------------------------------------------------------------------
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