How are you guys defining the URLs in your templates? I use either ${ std.url('/some/link')} or '/some/link'. In either case, I use the site root ('/') in all of my links, and I never see the '/tg_fastcgi.fcgi/' problem. Could this behavior be caused by relative links?
Sean
On 2/20/06, Mike Sarahan <[EMAIL PROTECTED]> wrote:
Yannick,
I don't understand what's going on well. Here's what I am thinking is
happening:
urls are getting re-written with tg_fastcgi.fcgi before the url. so
http://www.mysite.com becomes tg_fastcgi.fcgihttp://www.mysite.com ?
mine turns into http://www.mysite.com/tg_fastcgi.fcgi/
On my site, the tg_fastcgi.fcgi is before any and all
sub-folders/methods (minus static, which the .htaccess rule takes care
of). It doesn't break anything, and though it bothered me at first,
I've learned to just ignore it because it's functional.
but you seem to say that yours doesn't work. What errors come up?
-Mike
Yannick wrote:
> Jorge, Mike,
>
> Thanks for the help.
>
> I've decided to give a try to FastCGI, and I am going a little bit
> further but it still isn't working as expected.
> The problem I am now facing is that the url are requested to cherrypy
> with a "tg_fastcgi.fcgi" prefix. This is due to the rewriting rules in
> my .htaccess:
> RewriteEngine On
> RewriteBase /
> RewriteRule ^(tg_fastcgi\.fcgi/.*)$ - [L]
> RewriteRule !^stat - [C]
> RewriteRule ^(.*)$ tg_fastcgi.fcgi/$1 [L]
>
> If I use the server.webpath="/tg_fastcgi.fcgi" setting in my config
> file, it effectively strips out the "tg_fastcgi.fcgi" from the incoming
> requests, but it also prepends "tg_fastcgi.fcgi" to all the outgoing
> url! Which doesn't really improve the situation...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

