Re: configuring lighttpd proxy for standalone roundup server
"John P. Rouillard" <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Dave: I set an earlier response to just Dave. I'll incorporate that info here too for posterity. In message <CAETHaKrjR4mFUhjYY04h-MNRKFBS7X9qjN-DbCgTxSAbPm-Kng@mail.gmail.com> , Dave Bender writes: >> However..... >> >> When I try to login, I am forwarded ton unexpected URL: >> >> The login request path is a POST to: >> >> /tracker/example The post should be to /tracker/example/ (note the trailing /). I suggested he look at the [tracker] web seting to make sure it has the trailing /. >> which correctly resolves to /example >> >> However, I get a 302 to >> >> https://example.com/tracker/tracker/example >> >> As seen in the log. >> >> 127.0.0.1 - - [16/Apr/2023 12:54:06] "POST /movibus/ HTTP/1.1" 302 - >> 127.0.0.1 - - [16/Apr/2023 16:54:06] code 404, message /tracker/movibus/ >> 127.0.0.1 - - [16/Apr/2023 16:54:06] "GET /tracker/movibus/ HTTP/1.1" 404 - >> >> Why is there an extra tracker inserted here? > >I was able to answer my own question. I was trying to serve multiple >bugtrackers from a common URL prefix "/tracker" using proxy.header to >strip the common prefix out. >However, it seems lighttpd does more and compensates for this by >modifying 302. Interesting. I seem to remember that a missing trailing / would cause login to break similar to how you described. I tried to find the mailing list thread for that but had no luck. The servers we usualy see are Apache and Nginx, I also use Hiawatha to get a diferent than mainstream server. >So I removed proxy.header and adjusted config.ini and proxy.server >accordingly. >Now I am happy to just have one working bug tracker using this method, >though I am sure I can serve more with it. Cool. Can you post your current lighttpd config and web setting? (Change out the host name and actual tracker name with 'tracker_name' if you want). I'll post it on the wiki to document configurations for less mainstream web servers. Hope you enjoy using Roundup and can brag about it to your friends 8-). If you run into issues, we are here. Have a great week. -- -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions.