Relative URLs behind Apache2 proxy possible?

Asked by moadin

Hi together,

I start serve-branches with "--prefix=/bzr" behind Apache2 proxy. Apache2 is also configured correctly and redirects /bzr to the paste httpserver. On the first webpage everything is shown correct and images are also loaded.

Now, the links are no more correct in html source:
Instead of
all the dynamic links go to
So they are dead! Static links are relative and still correct in source (/bzr/static/...)

Is it possible to make dynamic links also relative?
Where to configure it? There is no more configuration file in serve-branches.

Maybe there's another answer for this problem?

Thanks for help.

Question information

English Edit question
loggerhead Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
moadin (moadin) said :

I found a dirty workaround: In loggerhead/apps/ I changed code before return value of "url" method to:
if (len(qs) > 0):
    qs = "?" + qs
return "" + self._url_base + "/".join(args) + qs

So now the links are working.
But hopefully it will also be fixed from Loggerhead-team in future releases of loggerhead?


Revision history for this message
Mikko Värri (vmj) said :

I did basically the same thing:

I'm not sure whether the domain name part is needed, so I dropped it.