Opened 9 years ago

Closed 9 years ago

#844 closed enhancement (fixed)

Support X-Forwarded headers for service URL

Reported by: Twan Goosen Owned by: Twan Goosen
Priority: major Milestone: ComponentRegistry-2.0
Component: ComponentRegistry Version:
Keywords: Cc:


Currently, the full service URL is provided by the context parameter eu.clarin.cmdi.componentregistry.serviceRootUrl. This is not sufficient in the case of a proxied setup. The solution is to replace this parameter with three new parameters:

  • serviceUrlUseXForwarded
    • true or false
  • serviceUrlBase
    • protocol + host (ignored if former is true)
  • serviceUrlPath
    • path within host

Service root URL would either be (if serviceUrlUseXForwarded == false)

  • serviceUrlBase + serviceUrlPath

or (if serviceUrlUseXForwarded == true)

  • getHeader("X-Forwarded-Proto") + :// + getHeader("X-FORWARDED-HOST") + serviceUrlPath

Change History (3)

comment:1 Changed 9 years ago by Twan Goosen

Milestone: ComponentRegistry-2.0

comment:2 Changed 9 years ago by Twan Goosen

Fixed in [6887:6890]

Version 0, edited 9 years ago by Twan Goosen (next)

comment:3 Changed 9 years ago by Twan Goosen

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.