Feature request #21423

Use more fcgi params for GetCapabilities response

Added by Nikolay Lebedev over 5 years ago. Updated over 5 years 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 5 years 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 5 years ago

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

#3 Updated by Alessandro Pasotti over 5 years ago

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

#4 Updated by Jürgen Fischer over 5 years ago

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

Also available in: Atom PDF