Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1349 (closed defect: invalid)

Opened 12 years ago

Last modified 12 years ago

Turbogear Redirect doesn't seem to respect protocol and port

Reported by: ldng Owned by: anonymous
Priority: normal Milestone: 1.0.2
Component: TurboGears Version: 1.0
Severity: normal Keywords:



when I do a relative redirect like redirect('new') or redirect('edit') according to the parameters passed to an let's say index function protocol (HTTPS) and port (20443) get stripped :  https://www.example.com:20443/article/ =>  http://www.example.com/article/new

Setting server.webpath to  https://www.example.com:20443/ in my config doesn't help

Change History

comment:1 Changed 12 years ago by ldng

Seems to be a pb in my proxy setup. Still it's weird that redirect('/article/new') for instance seems (not shure it actually really work as I think it is) to work as expected.

comment:2 Changed 12 years ago by Felix.Schwarz

Do you use TurboGears behind a proxy (e.g. Apache with mod_proxy or rewrite)? If so, please read  http://docs.turbogears.org/1.0/RedirectHttpsRequests to solve the problem with https redirects. Is there a problem with the port specification when you don't use https? If you can verify this, I will investigate this.

comment:3 Changed 12 years ago by ldng

  • Status changed from new to closed
  • Resolution set to invalid

The wiki page helped to solve the problem. I didn't see it as I was looking in Rough as this is, sadly, where the majority of the doc is.

No, it doesn't seems to happen on plain http. So I'm closing it.

Thanks for your help.

Note: See TracTickets for help on using tickets.