mod_perl/mod_cgi
Hello, Is there a way that I can make apache use mod_cgi to serve scripts in one directory, but mod_perl in all the others? I have some scripts that won't work under mod_perl in their current form, and I'd like to temporarily use them while I rewrite them for mod_perl. Thanks, Dustin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
xml and mod_perl
Hello, I've an old cgi-script that worked before I installed mod_perl, but now it won't work. I've put it in a directory that is configured to be handled by mod_cgi, but I get this error in my apache error logs when it tried to run: Thu Nov 6 15:50:23 2003] [error] [client 192.168.0.5] [libapreq] unknown content-type: `text/xml' [Thu Nov 6 15:50:23 2003] [error] [client 192.168.0.5] request failed: erroneous characters after protocol string: createInventoryNumberusedUlyssesJoyce, Jamesdtw The script is called by some javascript to make an xml-rpc request. Is there a way I can stop apreq from handling the script? Thanks, Dustin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
Re: xml and mod_perl
$ENV{'MOD_PERL'} is undefined, which leaves me to believe that Apache::Request isn't involved, but the error logs produce: [Thu Nov 6 16:56:45 2003] [error] [client 192.168.0.5] [libapreq] unknown content-type: `text/xml' Is there a way I can make apache/mod_perl know 'text/xml'? -Dustin On Nov 6, 2003, at 4:37 PM, Perrin Harkins wrote: On Thu, 2003-11-06 at 17:51, Dustin Whitney wrote: I've an old cgi-script that worked before I installed mod_perl, but now it won't work. I've put it in a directory that is configured to be handled by mod_cgi, but I get this error in my apache error logs when it tried to run I'm confused. This is an old CGI script, but it uses Apache::Request? What do you see when print out $ENV{'MOD_PERL'} in this script? - Perrin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html
Re: xml and mod_perl
I am using Mason. Here are some lines from my httpd.conf file that are probably relevant: Alias /perl/ /var/www/perl/ PerlSetVar MasonAllowGlobals $swit_user PerlInitHandler "Apache::StatINC" SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler SetHandler cgi-script -Dustin On Nov 6, 2003, at 5:28 PM, Perrin Harkins wrote: On Thu, 2003-11-06 at 19:20, Stas Bekman wrote: Nope. It's Apache::Request. Apache doesn't use libapreq: Okay, then he must be calling it from a different phase, since his script didn't have a value for $ENV{'MOD_PERL'}. Dustin, do you have an access handler, or a transhandler or something like that, using Apache::Request, that would be run for this URL? - Perrin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html