loggerhead always generates http urls, even if server.webpath is https

Bug #527330 reported by Kirill Krasnov
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
loggerhead
Triaged
Low
Unassigned
loggerhead-breezy
Triaged
Low
Unassigned

Bug Description

I have apache server, which work through standard https protocol.
I install loggerhead to work via proxy localhost 8080

ProxyPass /bzr/ http://localhost:8080/
ProxyPassReverse /bzr/ http://localhost:8080/

config

server.webpath = 'https://mybzrserver/bzr'

And I see all repos, see branchs, but If I try open source of top folders, I can't do this, because all links are throught http, not https.

Tags: apache https ssl
summary: - loggerhead not work thought https
+ loggerhead not work through https
description: updated
summary: - loggerhead not work through https
+ loggerhead does not work through https
Revision history for this message
myfreeweb (myfreeweb) wrote : Re: loggerhead does not work through https

Try WSGI (or FastCGI) instead of proxy.

Revision history for this message
Kirill Krasnov (kkrasnov) wrote :

Thanks, MyFreeWeb.
But can you write how I can do this?

Revision history for this message
myfreeweb (myfreeweb) wrote :

Set protocol to 'fcgi' in loggerhead.conf and run loggerhead. Then set up your server.

Revision history for this message
Kirill Krasnov (kkrasnov) wrote :

I set in /etc/loggerhead.conf
server.protocol = 'fcgi'

but not help :(

Revision history for this message
William Chambers (bioselement) wrote :

Any progress on this?

Martin Pool (mbp)
summary: - loggerhead does not work through https
+ loggerhead always generates http urls, even if server.webpath is https
Changed in loggerhead:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

As of lp:loggerhead r416, Loggerhead uses relative URLs everywhere except for HTTP redirects and IDs in the Atom feeds, so this is significantly less of an issue.

Changed in loggerhead:
importance: Medium → Low
status: Confirmed → Triaged
Revision history for this message
Kirill Krasnov (kkrasnov) wrote :

Thanks. Work for me.

Revision history for this message
Alexey V Gorshkov (animuspexus) wrote :

Hi!

I'm trapped on one interesting thing!

It is located in controllers/download_ui.py on line 47:

        if len(args) < 2:
            raise httpexceptions.HTTPMovedPermanently(
                self._branch.absolute_url('/changes'))

I think this pice of code plays some role in this. So if You opening not /changes, then redirect is performed. But if You opening /changes, then after this You can navigate anywhere on loggerhead without redirection.

Such redirects are braking https based sites.

Revision history for this message
Alexey V Gorshkov (animuspexus) wrote :

>You can navigate anywhere on loggerhead without redirection
well, as long as not len(args) < 2 :)

Jelmer Vernooij (jelmer)
Changed in loggerhead-breezy:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.