PasteDeploy prefix gives 404s no matter what

1 view
Skip to first unread message

Peter Waller

unread,
Oct 12, 2009, 11:23:40 AM10/12/09
to Paste Users
I am using a reverse proxy to send http://revproxy/blah/blah2/URL to
http://internal:port/URL.

I have tried the following configuration, without success. It works
fine if "prefix = /", but for anything else I get a 404, whether I
visit the internal server directly or not. I have tried every
combination of URLs I can think of, but nothing works if I have
"prefix = /blah/blah2". Any thoughts?

TIA.

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 28354
#port = 8080

[composite:main]
use = egg:Paste#urlmap
/ = pipe

[pipeline:pipe]
pipeline = prefix-filter myapp

[filter: prefix-filter]
use = egg:PasteDeploy#prefix
prefix = /blah/blah2

[app:myapp]
use = egg:myapp

Peter Waller

unread,
Oct 13, 2009, 7:15:43 AM10/13/09
to Paste Users, Jose Galvez
2009/10/13 Jose Galvez <jj.g...@gmail.com>
Wow why are you using compsite, pipeline and prefix-filter? from your setup all you need is either the pipeline or the composite but not both

I was trying to illustrate everything I had tried to get this to work. The fastest way to do that was to show the complete config.

It turns out, this was a bug in Turbogears, which is fixed in the head now. The above configuration or various permutations of it now work.

http://trac.turbogears.org/ticket/2357

Thanks anyway,

- Peter
Reply all
Reply to author
Forward
0 new messages