Apache Server configuration support - how can apache with RewriteRule pass query params to perl script

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2007 > how can apache with RewriteRule pass query params to perl script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how can apache with RewriteRule pass query params to perl script
sqad

2007-12-03, 7:28 pm

I have the following in my httpd.conf:

NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerName 127.0.0.1
RewriteEngine on
RewriteLog logs/rewrite.log
RewriteLogLevel 9
RewriteMap issuesmap prg:/Users/dev/applications/perl-scripts/
firstapp.pl
RewriteRule ^/(issues)/show_bug.cgi/? http://osge.network.org/jira/browse/${issuesmap:1}/?
[R]
</VirtualHost>

In the PERL script, my $ENV['QUERY_STRING'] is always null. I am
trying to test this with the following URL:
http://localhost/issues/show_bug.cgi?id=30

I need that "id" query parameter passed into my PERL script...please,
anyone know how to do this? QSA? What's the syntax, any help is
greatly aprpeciated.

/sqad
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com