Feature request #21423

Use more fcgi params for GetCapabilities response

Added by Nikolay Lebedev over 1 year ago. Updated over 1 year ago.

Status:Feedback
Priority:Normal
Assignee:-
Category:QGIS Server
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:29240

Description

In some cases QGIS services are exposed on multiple URL endpoints.
GetCapabilities response now takes into account fcgi params like SERVER_PORT and SERVER_NAME.
Unfortunately, neither SERVER_PROTOCOL nor REQUEST_URI are taken into account, so web server has to parse the backend response and replace it with appropriate values.
Could've been much better if QGIS used additional fcgi params to generate Capabilities.

History

#1 Updated by Alessandro Pasotti over 1 year ago

  • Status changed from Open to Feedback

You don't say which version of QGIS server are you talking about, btw, current master does read both `HTTPS` and `REQUEST_URI` from the env.

#2 Updated by Nikolay Lebedev over 1 year ago

I'm using QGIS 3.4.
Did it land in 3.6?

#3 Updated by Alessandro Pasotti over 1 year ago

Yes, and it was backported to 3.4 23 days ago.

#4 Updated by Jürgen Fischer over 1 year ago

master (and 3.6): 4d609ff46 (and 691176b39)
3.4: dafbef1e7 (and 823f2dd39)

Also available in: Atom PDF