Re: [OT] Apache rewrite rule
Re: [OT] Apache rewrite rule
- Subject: Re: [OT] Apache rewrite rule
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 16 Apr 2009 13:31:35 -0400
Tim,
Thanks a lot. I love cheatsheets and that's a really useful one :-)
Kieran
On Apr 16, 2009, at 12:36 PM, Tim Worman wrote:
Kieran et al:
I just went through some rewrite stuff although it was more related
to just getting multiple apps working at different virtual hosts.
This site has a really nicely done mod_rewrite cheat sheet (PDF):
http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet
Also, after your RewriteLog command you could add:
RewriteLogLevel 9
It does help a little with the debugging. I don't think anything
over '2' is recommended in deployment but you'll learn a lot by
amping it up as high as it can go while you're troubleshooting this
stuff. Sorry if I'm just spewing stuff you already knew about.
Tim
UCLA GSE&IS
On Apr 16, 2009, at 7:50 AM, Kieran Kelleher wrote:
Finally! Searching the apache docs more, I found another option PT,
the passthrough option, that specifically refers to this being
needed for mod_alias or using mod_rewrite with any other modules
that do URI-to-filename mapping or translation.
The final working rewrite rule is:
<IfModule rewrite_module>
# rewrite logging
RewriteLog "/var/log/apache2/rewrite.log"
# PURL feature
RewriteEngine On
RewriteRule ^/purl/(.*)$ /cgi-bin/WebObjects/cheetah.woa/-52040/wa/
PurlAction/purl?p=$1 [PT]
</IfModule>
Thanks for the mind-prodding guys.
Now it is working in apache2 on my dev machine. Hopefully apache
1.3 will be similar configuration when I deploy this feature in a
few days.
Regards, Kieran
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden