On Oct 29, 2007, at 7:11 PM, kernel1983 wrote:

>
> The routes know the real path
>
>
> when i put my site onto dreamhost, something like:
>
> /forum/topics
>
>
> but when I use h.url_for(...), the link became:
>
> /forum/dispatch.fcgi/topics
>
>
>
> how can i set to let routes' prefix? Or another solutions?
>

Route prefixes its urls with the value of SCRIPT_NAME. Depending on  
your environment (I don't recall how dreamhost is setup), that  
SCRIPT_NAME may be wrong -- for example when behind a reverse proxy.

In that case you can use PrefixMiddleware to force a different  
SCRIPT_NAME value:

http://wiki.pylonshq.com/display/pylonsdocs/Configuration 
+Files#prefixmiddleware

--
Philip Jenvey



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to