Redirect problem
Created by: codec
I've noticed a problem with merge requests on my setup:
- Gitlab (2.4.1) with Passenger behind nginx (external SSL forward proxy) =>
git.example.com
(configured in gitlab.yml) - Gitlab runs on
git.dmz.example.com
Now, when I create a merge request I get redirected to git.dmz.example.com/project/merge_requests/<new_id>
instead of git.example.com/project/...
Request headers
POST /project/merge_requests HTTP/1.1
Host: git.example.com
Connection: keep-alive
Content-Length: 261
Cache-Control: max-age=0
Origin: https://git.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.165 Safari/535.19
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://git.example.com/project/merge_requests/new
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: /* censored */
Response headers
HTTP/1.1 302 Found
Server: nginx/0.8.53
Date: Thu, 26 Apr 2012 07:56:50 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11
X-UA-Compatible: IE=Edge,chrome=1
Cache-Control: no-cache
X-Request-Id: 351d958a899d5a43254b8772af5f73ae
X-Runtime: 0.352986
X-Rack-Cache: invalidate, pass
Set-Cookie: /* censored */
Location: https://git.dmz.example.com/project/merge_requests/5
Status: 302
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 120
Strict-Transport-Security: max-age=500