• 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: Timo Hoepfner <email@hidden>
  • Date: Thu, 16 Apr 2009 15:44:54 +0200

Hi Kieran,

this is what we have in one of our apps. This is on Apache 1.3, though:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^/pools/([^/]*)/([^/]*)/(.*)$ /cgi-bin/ WebObjects/Frontend.woa/wa/PDFileAccessDirectAction/poolFile?trader= $1&pool=$2&path=$3 [L,PT]
</IfModule>


Timo

Am 16.04.2009 um 15:25 schrieb Kieran Kelleher:

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:
40onlinehome.de


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: Timo Hoepfner <email@hidden>
References: 
 >[OT] Apache rewrite rule (From: Kieran Kelleher <email@hidden>)

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