<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Helvetica, Arial, sans-serif">Hello Andreas,<br>
      <br>
      Thank you for your advice. That sounds like the best way. We are
      on Nginx but I guess it can do the same.<br>
      <br>
      Best<br>
      <br>
      Lars</font><br>
    <div class="moz-signature">
      <p style="text-align: left;font-family: Helvetica, Arial;"> Lars
        Fricke<br>
        Forschung & Entwicklung<br>
      </p>
      <p style="text-align: left;font-family: Helvetica, Arial;">
        +49(0)39602-183097<br>
        +49(0)39602-183098<br>
      </p>
      <p style="text-align: left;font-family: Helvetica, Arial;">
        SkenData GmbH<br>
        Mühlendamm 8B<br>
        18055 Rostock<br>
        <a class="moz-txt-link-abbreviated" href="http://www.skendata.de">www.skendata.de</a><br>
      </p>
      <p style="text-align: left;font-family: Helvetica, Arial;
        font-size: small;"> <br>
        <img src="cid:part1.8700A25B.FF7B61BA@skendata.de" alt="Wert14"
          title="Wert14 Auszeichnungen" px="" width="400"><br>
      </p>
      <p style="text-align: left;font-family: Helvetica, Arial;"> <br>
        <a class="moz-txt-link-abbreviated" href="http://www.wert14.de">www.wert14.de</a><br>
      </p>
      <p style="text-align: left;font-family: Helvetica, Arial;
        font-size: small"> Geschäftsführer: Jon Meis und Sven Jantzen<br>
        Amtsgericht Rostock HRB 12937<br>
      </p>
    </div>
    <div class="moz-cite-prefix">Am 30.03.20 um 10:45 schrieb Eichner,
      Andreas - SID:<br>
    </div>
    <blockquote type="cite"
      cite="mid:d44f9de0257049bdb48f571e0cbb7f5a@sid.sachsen.de">
      <pre class="moz-quote-pre" wrap="">Hallo Lars,

since you're on Ubuntu you're likely running MapServer in combination with an Apache HTTPd. So one option is to use an URL on localhost in your MapFile and let your webserver fordward it via mod_proxy using a fail over configuration.

HTH 

-----Ursprüngliche Nachricht-----
Von: mapserver-users [<a class="moz-txt-link-freetext" href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] Im Auftrag von Lars Fricke
Gesendet: Montag, 30. März 2020 09:12
An: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Betreff: [mapserver-users] defining fallback source in WMS client definition

Dear all,

We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect several WMS into one place, serving them to our application. 
The task now is to define a fallback for one of the WMS source servers. That means: 

Mapserver will have two technically identical sources for the same output layer, only the URL is different. Is there a way to define (in mapfile preferably) that one source is only used if the other fails (is offline)? I thought of layer groups but then I will have a duplicate call if both sources are available. I do know this would be a better task for a load balancer or proxy but we do not have that option at this time.

Thank you for your time and thoughts.

Best

Lars


Lars Fricke
Forschung & Entwicklung


+49(0)39602-183097
+49(0)39602-183098


SkenData GmbH
Mühlendamm 8B
18055 Rostock
<a class="moz-txt-link-abbreviated" href="http://www.skendata.de">www.skendata.de</a>



Wert14



<a class="moz-txt-link-abbreviated" href="http://www.wert14.de">www.wert14.de</a>


Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937


</pre>
    </blockquote>
    <br>
  </body>
</html>