<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Anita<br>
    <br>
    In the GetCapabilities response, a WMS server gives back the urls
    for GetMap and GetFeatureInfo (they could be different to the url
    used for GetCapabilities). However, in most cases, the base url is
    the same as for GetCapabilities. Even worse, in most cases, the
    advertised urls for GetMap and GetFeatureInfo are wrong. QGIS server
    generates those urls from the cgi environment variables, other
    servers rely on admin configuration.<br>
    <br>
    In most cases, it is appropriate to select the two options (we
    should probably select them by default).<br>
    <br>
    Regards,<br>
    Marco <br>
    <br>
    <br>
    On 13.12.2011 16:49, Anita Graser wrote:
    <blockquote
cite="mid:CAFFV8FjKq5sE53a50Ed6gdEG22FeN0TORs7+hz4pmrpcu+GWUw@mail.gmail.com"
      type="cite">
      <div>Hi Marco,<br>
      </div>
      <div><br>
      </div>
      <div>Could you explain what those two options do and when they
        should be used? Are there any rules or is it always
        trial-and-error?</div>
      <div><br>
      </div>
      <div>Regards,</div>
      <div><br>
      </div>
      <div>Anita</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br>
      <div class="gmail_quote">On Tue, Dec 13, 2011 at 4:43 PM, Marco
        Hugentobler <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hi Daniel<br>
            <br>
            In the wms connection settings of QGIS (client) , select
            'Ignore GetMap url' and 'Ignore GetFeatureInfo url'.<br>
            <br>
            Regards,<br>
            Marco
            <div>
              <div class="h5"><br>
                <br>
                On 13.12.2011 16:30, <a moz-do-not-send="true"
                  href="mailto:Daniel.Gnerre@vevey.ch" target="_blank">Daniel.Gnerre@vevey.ch</a>
                wrote:
                <blockquote type="cite"><font face="sans-serif">Hello,</font>
                  <br>
                  <br>
                  <font face="sans-serif">I finally installed
                    qgis-mapserver using Ubuntu "Package Manager" and
                    Natty version instead of Oneiric... </font> <br>
                  <br>
                  <font face="sans-serif">Now I've set up a WMS service
                    : </font> <br>
                  <font face="sans-serif">- Configured Apache with a
                    scriptalias : </font><a moz-do-not-send="true"
                    href="http://localhost/qgis/" target="_blank"><font
                      face="sans-serif">http://localhost/qgis/</font></a><font
                    face="sans-serif"> points on
                    /usr/lib/cgi-bin/qgis_mapserv.fcgi</font> <br>
                  <font face="sans-serif">- Created a small qgs project
                    /home/gnerred/qgis/test.qgs containing one shapefile
                    /home/data/cadastre/cs_batiments.shp</font> <br>
                  <font face="sans-serif">- The GetCapabilities responds
                    well :O) !</font> <br>
                  <font face="sans-serif">- But when I try to see the
                    map result opening the WMS service in QGIS, I get a
                    blank map... and no getmap request is logged in
                    Apache logs, only the getcapabilities requests are
                    logged. I use the URL </font><a
                    moz-do-not-send="true"
href="http://localhost/qgis/qgis_mapserver.fcgi?MAP=/home/gnerred/qgis/test.qgs"
                    target="_blank"><font face="sans-serif">http://localhost/qgis/qgis_mapserver.fcgi?MAP=/home/gnerred/qgis/test.qgs</font></a>
                  <br>
                  <br>
                  <font face="sans-serif">Any idea of the problem ? I
                    think I'm not so far !</font> <br>
                  <br>
                  <font face="sans-serif">Thanks a lot !</font> <br>
                  <br>
                  <font face="sans-serif">Daniel </font> </blockquote>
                <br>
                <br>
              </div>
            </div>
            <span class="HOEnZb"><font color="#888888">
                <pre cols="72">-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
<a moz-do-not-send="true" href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a> <a moz-do-not-send="true" href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee</pre>
              </font></span></div>
          <br>
          _______________________________________________<br>
          Qgis-user mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
            target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee</pre>
  </body>
</html>