<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0px;
        margin-bottom:0px}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Thanks for your tip! Adding the port number for every single layer isn't an option though. Also, which I didn't mention, we have also published port 80. We wish to use port 80 for cached content and 81 for non-cached. For both to work simultaneously the
 URLs in the WMS GetCapabilities response need to be dynamic.</p>
<p><br>
</p>
<p>Regards</p>
<p>Henrik</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Från:</b> Qgis-user <qgis-user-bounces@lists.osgeo.org> för st_kiefer@web.de <st_kiefer@web.de><br>
<b>Skickat:</b> den 2 juni 2017 20:21<br>
<b>Till:</b> qgis-user@lists.osgeo.org<br>
<b>Ämne:</b> Re: [Qgis-user] Port number in GetCapabilities</font>
<div> </div>
</div>
<div>
<p>Hi,</p>
<p>I read your post just for curiosty, in fact I have no experience with Qgis Server. Otherwise while exploring this feature I found the following in the Documentation:</p>
<p>"If you want QGIS Server to advertise specific request URLs in the WMS GetCapabilities response, enter the corresponding URL in the
<em class="guilabel">Advertised URL</em> field."[1] Maybe that helps.</p>
<p><br>
</p>
<p>Cheers.</p>
<p><br>
</p>
<p>Stefan<br>
</p>
<p><br>
</p>
<p>[1] <a class="moz-txt-link-freetext" href="http://docs.qgis.org/2.14/en/docs/user_manual/working_with_ogc/ogc_server_support.html#wms-capabilities">
http://docs.qgis.org/2.14/en/docs/user_manual/working_with_ogc/ogc_server_support.html#wms-capabilities</a><br>
</p>
<br>
<div class="moz-cite-prefix">Am 02.06.2017 um 15:19 schrieb Henrik Uggla:<br>
</div>
<blockquote type="cite"><style type="text/css" style="">
<!--
p
        {margin-top:0px;
        margin-bottom:0px}
-->
</style>
<p>Hi!<br>
</p>
<p><br>
</p>
<p>I've installed Qgis Server on Linux and have set it up to listen on port 81. My problem is that the layer urls in the GetCapabilities response are written without port number. How can I fix this? (I've confirmed that the request Host header includes the
 port)<br>
</p>
<p><br>
</p>
<p>regards</p>
<p>HU <br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br>
</div>
</div>
</body>
</html>