Preparing for the 3.4 release I've update a bit the nginx configuration to be more clean and flexible.
Since server_name, which is used to populate SERVER_NAME in FastCGI, cannot be know a priori we use the Host header to set it. Same is done for Scheme. Port is taken splitting $http_host
These variables are used by QGIS server to build GetCapabilities URLs.
If a reverse proxy sets X-Forwarded-* those are used instead.
Preparing for the
3.4
release I've update a bit the nginx configuration to be more clean and flexible.Since
server_name
, which is used to populateSERVER_NAME
in FastCGI, cannot be know a priori we use theHost
header to set it. Same is done forScheme
.Port
is taken splitting$http_host
These variables are used by QGIS server to buildGetCapabilities
URLs. If a reverse proxy setsX-Forwarded-*
those are used instead.It can be tested via tag
3.4
. (see https://github.com/gem/oq-qgis-server/blob/master/.travis.yml for an example). You should getinstead of