<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>as far as I understand you have to set the URL only once in the
      project-Settings. Besides, port 80 is not the best choice, 80 is
      the standard port for internet-access. Better use something non
      special like 8801.</p>
    <p><br>
    </p>
    <p>Cheers.</p>
    <p><br>
    </p>
    <p>Stefan<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 02.06.2017 um 21:57 schrieb Henrik
      Uggla:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1496433451714.10348@kristianstad.se">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0px;
        margin-bottom:0px}--></style>
      <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 <a class="moz-txt-link-rfc2396E" href="mailto:qgis-user-bounces@lists.osgeo.org"><qgis-user-bounces@lists.osgeo.org></a> för
            <a class="moz-txt-link-abbreviated" href="mailto:st_kiefer@web.de">st_kiefer@web.de</a> <a class="moz-txt-link-rfc2396E" href="mailto:st_kiefer@web.de"><st_kiefer@web.de></a><br>
            <b>Skickat:</b> den 2 juni 2017 20:21<br>
            <b>Till:</b> <a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a><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"
              moz-do-not-send="true">
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" moz-do-not-send="true">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user" moz-do-not-send="true">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" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
          </blockquote>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>