Perl CGI and URL rewriting returning source instead of execution
- From: girardot@xxxxxxx (Blake Girardot)
- Date: Mon, 29 Aug 2005 13:20:27 -0400
Hi,
I have a perl cgi application, not mod_perl, but an actual .cgi application running under apache on OS X.
As many web apps, it makes use of some long get requests with variable labels and values. For example:
http://server.com/cgi-bin/app.cgi?t=new.htm&c=jlpnew.html
I wrote a working url mod_rewrite rule for apache, but instead of the .cgi executing, it just returns the source code of the cgi.
Here are the rewrite rules:
RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteLog /Users/flint/logs/mod_rewrite_log RewriteLogLevel 8 RewriteRule ^/showpage/([0-9]+)$ /cgi-bin/app.cgi?c=pc2.htm&b=photo_db&UID=$1 RewriteRule ^/showimage/([0-9]+)$ /cgi-bin/app.cgi?c=pc2.htm&b=photo_db&UID=$1
Any idea what I am doing wrong, why it just returns the cgi source text? It works fine with the actual urls, so I know everything is working normally, just not with the rewrite rule.
Thank you in advance, and I will be sure to summarize and post the solution when I get it worked out.
Regards, Blake .
- Follow-Ups:
- Re: Perl CGI and URL rewriting returning source instead of execution
- From: Philipp Traeder
- Re: Perl CGI and URL rewriting returning source instead of execution
- Prev by Date: RE: encrypt the password stored in a file
- Next by Date: Parsing HTML
- Previous by thread: @INC
- Next by thread: Re: Perl CGI and URL rewriting returning source instead of execution
- Index(es):
Relevant Pages
|