• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] Apache rewrite rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Apache rewrite rule


  • Subject: Re: [OT] Apache rewrite rule
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 16 Apr 2009 10:08:23 -0400

if you're rewriting to wo instances, you need to make sure the ordering of your modules is right, too ... in 5.3 (i don't know about 5.4), the order of the modules was wrong -- you have to make mod_webobjects come before mod_rewrite (iirc).

ms

On Apr 16, 2009, at 9:25 AM, Kieran Kelleher wrote:

Hello list,

Well when Brian Moore said mod_rewrite was voodoo (http://httpd.apache.org/docs/2.2/rewrite/ ), I was skeptical, but now I believe him! I need some help for what I think should be a pretty simple rewrite rule. I am currently trying to get this to work initially on my development machine, and I keep getting a 404 "Not Found" message from apache (version 2.2.9).

The rule is supposed to take convert URLs like this :
http://localhost/purl/KieranKelleher

and rewrite them like this (on my dev machine):
http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher

I have added this to the end of my /etc/apache2/httpd.conf just before the last 2 includes at the end of the file (other/*.conf and WO apache.conf)

<IfModule rewrite_module>
# rewrite logging
RewriteLog "/tmp/rewrite.log"

# PURL feature
RewriteEngine On
RewriteRule ^/purl/(.*)$ /cgi-bin/WebObjects/cheetah.woa/-52040/wa/ PurlAction/purl?p=$1
</IfModule>


I can confirm that when I restarted apache it creates the /tmp/ rewrite.log if it does not exist, however nothing gets written there.

I have studied the docs, the wiki docs and many examples. This looks like it should work, but I cannot for the life of me figure out why it does not work :-(

Any clues or hints would be appreciated.

Thanks, 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


_______________________________________________
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


  • Follow-Ups:
    • Re: [OT] Apache rewrite rule
      • From: Kieran Kelleher <email@hidden>
References: 
 >[OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: [OT] Apache rewrite rule
  • Next by Date: Re: [OT] Apache rewrite rule
  • Previous by thread: Re: [OT] Apache rewrite rule
  • Next by thread: Re: [OT] Apache rewrite rule
  • Index(es):
    • Date
    • Thread