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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to