[QGIS-it-user] QGIS-Server: problemi con Apache

Ciao Vittorio Emanuele,
la guida ufficiale, dopo la modifica del file hosts indica che si può verificare la funzionalità del server utilizzando il seguente URL nel browser:
http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

mentre tu hai scritto di aver usato usato un URL differente:
http://178.128.200.12/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

Inoltre è indicato che:
<<Puoi anche testare l’accesso al server QGIS da altri client in rete (ad esempio macchine Windows o Macos) andando nel file /etc/hosts e puntando il nome qgis.demo a qualsiasi IP della macchina server sulla rete>>

Io ho modificato il file hosts del mio PC inserendo la riga
178.128.200.12 qgis.demo

e ho inserito nel Browser web l'URL indicato nella guida
http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

e il server mi ha restituito correttamente il documento GetCapabilities di cui riporto le prime righe:

WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns="http://www.opengis.net/wms&quot; xmlns:sld="http://www.opengis.net/sld&quot; xmlns:qgs="http://www.qgis.org/wms&quot; version="1.3.0" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http://qgis.demo/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetSchemaExtension&quot;&gt;
<script> try { Object.defineProperty(navigator, "globalPrivacyControl", { value: false, configurable: false, writable: false }); document.currentScript.parentElement.removeChild(document.currentScript); } catch(e) {}; </script>
<script/>
<Service>
<Name>WMS</Name>
<Title>QGIS Server Demo</Title>

Quindi mi pare che sia tutto funzionante.

A presto.

Andrea Giudiceandrea

Il 14/03/2023 06:17, Vittorio Emanuele Iervolino ha scritto:

Buongiorno a tutti.
Seguendo la guida ufficiale per installare QGIS-Server 3.22
https://docs.qgis.org/3.22/it/docs/server_manual/getting_started.html#installation-on-debian-based-systems