> When we try and run a perl cgi program in an Apache virtual host we get > these error messages. > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] jrun_trans: r > is 0x1fe978, server is 0x104580, virtual 1 > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] HOST: devsite > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] filtering > /cgi-bin/mon/test.pl > (/export/home/devuser/resources/cgi-bin/mon/test.pl) HOST=devsite > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] > filterRequest: no match > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] jrun_service: > r is 0x1fe978, server is 0x104580, virtual 1 > [Tue Jan 27 14:10:58 2009] [notice] jrApache[9558: 3360] jrun_service: > no handler, return DECLINED > [Tue Jan 27 14:10:58 2009] [error] [client xx.xx.xx.xx] (13)Permission > denied: exec of '/export/home/devuser/resources/cgi-bin/mon/test.pl' failed > [Tue Jan 27 14:10:58 2009] [error] [client xx.xx.xx.xx] Premature end of > script headers: test.pl > > We are a little confused by JRun showing up in these errors, why would > that be happening?
By default, all requests - for any file - will be forwarded to JRun, which will then use the filters in web.xml to determine which files it should actually run. If a file isn't to be run by JRun, the request will be passed back to the web server, which will then (in theory) handle it normally. The determination about which files are passed to JRun is controlled by the context root, which by default is "/". This is why some sites, like Adobe's site, use context roots like "/cfusion" and ensure that all CF files are within a directory that matches that URL pattern. All that said, I don't think the problem has anything to do with JRun. > We can run this perl code from the command line. It also runs through a > web request to the server itself, outside of any virtual host. But when > called by a virtual host name, that is configured to handle ColdFusion, > we get these errors. I think that your virtual host isn't configured to run Perl. You could test this by creating another virtual host that is configured like the others in all respects except without a connection to JRun. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318653 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

