Loggerhead should be able to serve branches through http

Bug #240577 reported by Martin Albisetti
14
Affects Status Importance Assigned to Milestone
loggerhead
Fix Released
Undecided
Jonathan Lange

Bug Description

It would be pretty useful to optionally be able to serve read-only branched in Loggerhead through http, and make it clear in the UI with the URL that can be used to branch it.

Related branches

Martin Albisetti (beuno)
Changed in loggerhead:
status: New → Confirmed
Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

If this is offered, it should also be possible to associate other URLs to be used to branch it. I run Loggerhead at http://bzr.example.com/loggerhead/some/branch/, and they can be branched from http://bzr.example.com/bzr/some/branch/. I'd rather not have two different URLs for each branch.

Revision history for this message
Max Kanat-Alexander (mkanat) wrote :

For anybody interested, if you're using Apache to ProxyPass to Loggerhead and your URLs are identical to the actual URLs for the branch, you can use this config in your VirtualHost to make the .bzr directories accessible:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} !\.bzr
    RewriteRule (.*) http://localhost:8080%{REQUEST_URI} [P]
    ProxyPassReverse / http://localhost:8080/

Revision history for this message
Matt Nordhoff (mnordhoff) wrote : Re: [Bug 240577] Re: Loggerhead should be able to serve branches through http

I'd be a little more precise than "\.bzr". A regexp like that will catch
requests to /annotate/123/.bzrignore and stuff.

Martin Albisetti (beuno)
Changed in loggerhead:
assignee: nobody → jml
status: Confirmed → Fix Committed
Martin Albisetti (beuno)
Changed in loggerhead:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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