On Sun, Sep 28, 2008 at 3:51 AM, tomekM <[EMAIL PROTECTED]> wrote:
> Hello.
>
> May I ask how do you deal with url rewriting? I have in my app rewrite rule
> like this:
>
> /apps/(.*) --> /web.cgi/$1
>
> But, when I use web.url() to prepare hrefs, I'm getting /web.cgi/sth/foo,
> instead of /apps/sth/foo.
> This is because web.ctx.homepath is initialized by env['SCRIPT_NAME'].

You need to set environment variable REAL_SCRIPT_PATH as /app

If you are using lighttpd fastcgi, you can do that by adding this to
your fastcgi configuration.

   "bin-environment" => (
     "REAL_SCRIPT_NAME" => "/app"
   ),

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to