0

I have FogBugz installed on a Mac and instead of the standard http://mydomain/fogbugz -> http://localhost:7066/fogbugz setup enabled by including /opt/fogbugz/conf/fogbugz-redirect.conf in my main apache httpd.conf, I have a virtual host doing the proxypass from http://mydomain:

# Virtual hosts
#Include /private/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
    ServerAdmin me@example.com
    ServerName mydomain
    ServerAlias www.mydomain
    ProxyPass / http://localhost:7066/fogbugz/
    ProxyPassReverse / http://localhost:7066/fogbugz/
</VirtualHost>
<VirtualHost *:8080>
    ServerAdmin me@example.com
    ServerName mydomain
    ServerAlias www.mydomain
    DocumentRoot "/Library/WebServer/Documents"
</VirtualHost>

With this setup, I keep getting logged out of fogbugz. Looking at my cookies, the domain is mydomain, but the path is /fogbugz instead of /. How can I tell FogBugz that it's at the root of my main apache?

For fun, I tried the sRedirectBase setting in the database, but it didn't change the behavior.

flag

1 Answer

1

You can fix this by allowing the /fogbugz/ entrance to the site. Your cookies will still have the wrong path, but at least it won't be a bad path. The fix is in /opt/fogbugz/conf/fogbugz-redirect.conf:

Original:

RedirectMatch /fogbugz$ http://fogbugz.roar.net/fogbugz/

ProxyPass / http://localhost:7066/fogbugz/
ProxyPassReverse / http://localhost:7066/fogbugz/
ProxyPassReverse / http://fogbugz.roar.net/fogbugz/

Fix:

#RedirectMatch /fogbugz$ http://fogbugz.roar.net/fogbugz/

ProxyPass / http://localhost:7066/
ProxyPassReverse / http://localhost:7066/
ProxyPassReverse / http://fogbugz.roar.net/
link|flag
I'm not doing a redirect match, I'm using a virtual host, sooo not quite, but I do respect your smart-sounding answer. It magically started working anyway :) – adambox Nov 2 2010 at 13:34

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.