mod_perl
provides a way to run perl scripts in httpd.conf
:
<perl>
...scripts goes here...
</perl>
How do I configure httpd.conf
so that scripts inside <perl></perl>
only get run if there's a flag
parameter in the querystring?
mod_perl
provides a way to run perl scripts in httpd.conf
:
<perl>
...scripts goes here...
</perl>
How do I configure httpd.conf
so that scripts inside <perl></perl>
only get run if there's a flag
parameter in the querystring?
Use Perl to evaluate the query_string and then use an
if
statement to skip the rest if the parameter is not set.Perhaps something like this*:
*there might be other ways to break up the query_string, here's where I got my example.