pylons.url() adding fastcgi's socket name to urls

22 views
Skip to first unread message

Aengus Walton

unread,
May 17, 2012, 8:20:23 AM5/17/12
to pylons-discuss
Possibly not the right place to ask but #pylons on freenode is stone-
cold dead and I can't find any relevant documentation about this
(apart from the stuff I'll outline here) I'm having some problems
setting up a pylons app behind Lighttpd with fastcgi. The application
works perfectly, but all urls that are generated using pylons.url()
have the /appname.fcgi/ added at the beginning.

On this wiki page[1] there's a section called "Fixing Broken Routes"
which describes this problem exactly and describes a solution for it.
I've implemented this solution in this commit[2] to my project,
however the problem persists.

Does anyone else have experience with this problem or with setting
pylons apps up in this kind of environment?

I'd really appreciate any help at all.

[1]: http://wiki.pylonshq.com/display/pylonscookbook/Production+Deployment+Using+Apache%2C+FastCGI+and+mod_rewrite
[2]: https://github.com/kopf/porick/commit/8561ba51ae0a9a201cecfa7dac5b948468e7354c

Mike Orr

unread,
May 17, 2012, 1:39:02 PM5/17/12
to pylons-...@googlegroups.com, James Gardner, James Gardner
On Thu, May 17, 2012 at 5:20 AM, Aengus Walton <vent...@gmail.com> wrote:
> Possibly not the right place to ask

This is the place for Pylons questions. I don't know the answer to
your question but maybe others who have used Pylons with FCGI do. I'm
cc'ing James Gardner who wrote the wiki page. He was one of Pylons'
founders but has not been active recently.

I have used the "redirects to hide the application prefix" approach in
the past in other environments (Zope, CGI), and it's always a pain to
set up and make consistent everywhere.
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>



--
Mike Orr <slugg...@gmail.com>

Jonathan Vanasco

unread,
May 17, 2012, 9:23:17 PM5/17/12
to pylons-discuss
can i suggest setting up a test page that dumps the request &
environment variables ? there might be something there that gives you
a clue.

lighttpd is weird. it might be configured to prepend something into
your env.
Reply all
Reply to author
Forward
0 new messages