OT, please help with apache2 RewriteRule

Gregory Nowak greg at romuald.net.eu.org
Tue Feb 3 01:43:26 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again.

Well, after spending a few more hours with the apache2 manual, I
managed to figure this out. I'll post the solution for anyone who is
interested. For those who aren't, use your delete key now.

Here's what the rule for doing what I wanted to do looks like, and I
won't put the quotes in for clarity this time:

- --- cut here ---
RewriteCond %{QUERY_STRING} ^list=(.*)$
RewriteRule ^/cgi-bin/$ /cgi-bin/ezmlm-browse [R]
- --- end here ---

You of course need to turn on the RewriteEngine first. Also,
RewriteLog, and RewriteLogLevel proved vital when tweaking to get the
final result, once I figured out the basics.

What finally tipped me off was the statement that RewriteCond is used
to conditionally run a RewriteRule, based on environment variables,
and the information that QUERY_STRING holds "info" passed to cgi
scripts.

Complexity is what makes apache so neat and versatile, but it's also
the complexity that makes you want to howl in frustration at the top of your lungs,
and slam your fist into your poor pc, (no, I wasn't howling, and
bashing my pc, but I sure had the urge to do both).

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager at EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmH540ACgkQ7s9z/XlyUyDKOwCdFikmsr5idioRYo+puWwso757
Nn4An2hfA1/XjI8wMzY+jCnh+Yg/A0cm
=DZ0w
-----END PGP SIGNATURE-----



More information about the Speakup mailing list