<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Mats</p>
<p>I just react now about this topic. <br>
</p>
<p>Thank to (try to) use qgis server! The more we are, the better! <br>
</p>
<p>By the way as you mentioned, the documentation may need some
adjustments to increase the success of first deployments. There
are, indeed, some misprint to fix as the reference to `<code
class="file docutils literal notranslate"><span class="pre">myhost.conf`</span></code>
(which is qgis.demo.conf) or<code class="file docutils literal
notranslate"><span class="pre"><br>
</span></code></p>
<pre>*In the following, please replace localhost with the name or IP
address of your server.*</pre>
<p>But the name <font face="monospace">qgis.demo</font> is just an
example of host, if your host is <font face="monospace">geonet.se</font>
you should create an apache virtualhost with this hostname in <span
class="nb">ServerName</span> directive.</p>
<p>Apache will only redirect access to qgis server if the host on
the url matches the virtualhost <span class="nb">ServerName</span>.</p>
<p>Also to avoid to show the qgis project filename and path in the
url you can use the apache rewrite module: <br>
</p>
<p>Activate `ReWrite` module: <br>
> ln -s /etc/apache2/mos-available/rewrite.load
/etc/apache2/mod-enabled/<br>
<br>
And add in your virtualhost:<br>
RewriteEngine On<br>
RewriteRule ^/qgis/(.+)$
/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/$1.qgz [QSA]<br>
</p>
<p>Then after reloading apache you should access to your qgis server
with this url:</p>
<p><a class="moz-txt-link-freetext" href="http://geonet.se/qgis/my_12?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://geonet.se/qgis/my_12?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></p>
<p>Regards<br>
</p>
<p><br>
</p>
</body>
</html>