<div dir="ltr"><div dir="ltr">On Mon, Oct 4, 2021 at 3:58 AM Mats Elfström <<a href="mailto:mats.elfstrom@giskraft.se">mats.elfstrom@giskraft.se</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Richard!</div><div>I should have mentioned that. The request you suggest gives a Not Found response.</div></div></blockquote><div><br></div><div>In a default configuration, the files in /cgi-bin/ would be available to all of the hosts on your server, but there are more than one places where that might be blocked and it may not be worth your time to figure out where or why.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>The request</div><div><a href="http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?service=WMS&request=getcapabilities" target="_blank">http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?service=WMS&request=getcapabilities</a></div><div>gives</div><div><i>Project file error. For OWS services: please provide a SERVICE and a MAP parameter pointing to a valid QGIS project file</i></div><div>Doing that, like this</div><div><a href="http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/my_12.qgz" target="_blank">http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/my_12.qgz</a></div><div>I get the wanted XML file. I would like to query the catalogue instead of a single project file.<br></div></div></blockquote><div> </div><div>I don't know qgis_mapserver well enough to comment on catalogues. </div><div><br></div><div>Generally you don't want the path to the project file to be visible in the URL because it's considered a security concern. Again, I'm not a regular qgis_mapserver user, but the mapserver documentation has some useful suggestions: <a href="https://mapserver.gis.umn.edu/ogc/wms_server.html#changing-the-online-resource-url">https://mapserver.gis.umn.edu/ogc/wms_server.html#changing-the-online-resource-url</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>And like I said, the same request is valid for QGIS desktop <u>on the same machine</u>.<br></div><div>A similar request, using the DNS name for the server, from the outside<br><a href="http://geonet.se/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/my_12.qgz" target="_blank">http://geonet.se/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=/home/qgis/projects/my_12.qgz</a></div><div>gives a 404 not found response.</div></div></blockquote><div><br></div><div>I believe in a previous email you said that other resources on <a href="http://geonet.se">geonet.se</a> were accessible from the outside which indicates that your DNS is correctly pointing to your server. In which case I'm guessing that it's an issue with the Apache <virtualhost> configuration. It needs to be accepting all requests to port 80, for example <VirtualHost *:80> but you probably don't even need a virtualhost so try just commenting it out.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><b>Conclusion</b>: QGIS Server is running behind the firewall but not accessible from the outside, <u>which of course is the purpose for my concept</u>.</div></div></blockquote><div><br></div><div>Do you really have a true firewall, or is it your Apache configuration? Like maybe your virtual host.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><b>Comment on other replies</b>: I am not saying that QGIS server is not ready for production or immature. On the contrary, it seems well documented and ready. I seem to recall that it also is OCG compliant and certified.<br></div><div><u>But </u> I am saying that the instructions for installation and configuration, particularly for the interaction between QGIS Server and the http engine are insufficient and sketchy. Regardless of OS, apparently.</div></div></blockquote><div></div></div><div><br></div><div>Yeah, I hear you. I haven't actually read the documentation. But don't give up. If I didn't have 10k lines of .map files I'd be looking at qgis_server very seriously. </div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>