[rt-users] "Ordinary" CGI-Scripts don't work after installing RT2
Josh Krikke
krikke at macatawa.org
Tue Nov 13 14:05:21 EST 2001
I've since added some to it. This handles attachments as well. I don't
know if it has any performance issues... Here's a new excerpt:
<FilesMatch "*.html">
SetHandler perl-script
PerlHandler RT::Mason
</FilesMatch>
<LocationMatch "/*/Attachment">
SetHandler perl-script
PerlHandler RT::Mason
</LocationMatch>
This location directive is just another regex. Come to think of it,
something like this should work for anything _not_ in cgi-bin:
<LocationMatch "!^/cgi-bin/$"> #not sure about the regex syntax
here
SetHandler perl-script
PerlHandler RT::Mason
</LocationMatch>
I don't have time to try it right now, but I might try it in the next few
days. I'll let everyone know if no one else does.
-Josh
> -----Original Message-----
> From: rt-users-admin at lists.fsck.com
> [mailto:rt-users-admin at lists.fsck.com]On Behalf Of Darren Grabowski
> Sent: Tuesday, November 13, 2001 1:16 PM
> To: rt-users at lists.fsck.com
> Subject: Re: [rt-users] "Ordinary" CGI-Scripts don't work after
> installing RT2
>
>
> Josh Krikke is quoted as saying:
> > This is more of an Apache and Mason question, but here you go:
> > 1. You don't have a ScriptAlias in there for your cgi-bin
> > 2. After you put that in, Mason will still try to handle all
> your requests.
> > I'd put a
> > <FilesMatch "*.html">
> > SetHandler perl-script
> > PerlHandler RT::Mason
> > </FilesMatch>
> > instead of your <Location /> tags. I've not had problems with that.
> > 3. If that is your only IP, then once you put that VirtualHost in there,
> > directives in there will override everything else in your
> httpd.conf file.
>
> This works great, except when users send in attachments. How can
> I set this
> up so Mason handles everything except cgi scripts?
>
> darren
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
More information about the rt-users
mailing list