On 03/10/2011 09:51 AM, Bruce Stephens wrote:
We were running trac on out main intranet server (call it www.domain),
and we're in the process of splitting things out, so now trac is
running on trac.domain and www.domain proxies to that with:
<Location /trac/>
ProxyPass http://trac.domain/trac/
ProxyPassReverse http://trac.domain/trac/
</Location>
But that doesn't quite work. It seems that anything involving
redirection (logging in, logging out) redirects to trac.domain,
That's really odd - it shouldn't be.
Question: did you change your trac url as well? If so, that's likely
part of the problem - it's prepending that to any generated urls. You
might need to leave that as www, since it's only accessed through the
proxy - but I thought that the proxy would intercept the stream and
rewrite that.
Also, I've never used that variant of the configuration option before.
Typically, I'd do:
ProxyPass /trac/ http://trac.domain/
ProxyPassReverse /trac/ http://trac.domain/
So what's the simplest way of fixing things?
I'd fix the proxy.
Alternatively, what's really happening? Is it the redirection, and if
so where's the server name from trac.domain coming from? Adding
"ServerName www.domain" to the config on trac.domain doesn't seem to
work, for example.
I think that comes from the [project] section, the url parameter.
--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
[email protected]
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.