<div dir="ltr"><div><div><div><div><div><div>Thanks Bernard<br><br></div>You are right, but now It not found the path wsgi folder<br><br>"The requested URL /wsgi/search.wsgi was not found on this server."<br><br></div>in globalOptions. js I set :<br><br>//URL for custom search scriptsnull; //<br>var searchBoxQueryURL =  "/wsgi/search.wsgi?query="; // null:<br>var searchBoxGetGeomURL =  "/wsgi/getSearchGeom.wsgi";//null; //<br></div> and <br><br></div>in /etc/apache2/sites-available/default<br></div>I set <br>#mod_wsgi<br>  WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}<br>  WSGIScriptAlias /wsgi/ /home/www/wsgi/<br>  WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi<br><br></div><div>and than I restarted apache<br></div><div><br></div>Where I wrong?<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-22 11:26 GMT+04:00 Bernhard Ströbl <span dir="ltr"><<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Enzo,<br>
<br>
your error indicates that the script is not executed as a server script but instead delivered to the client. Thjis should not happen, as it is a high security risk (db internals are exposed).<br>
<br>
Have you enabled mod_wsgi on your apache server as described in section 6.2.1 of the QWC documentation?<br>
<br>
You also should follow this line (section 6 the documentation): "It is recommended to install the wsgi scripts in a separate directory, e.g. /home/www/wsgi, a place that is not reachable by regular web traffic."<br>
<br>
Bernhard<span class=""><br>
<br>
Am 22.04.2015 09:15, schrieb Enzo Cocca:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Tahnks Bernhard,<br>
<br>
I know, I have followed the procedure from official guideline<br>
<a href="https://github.com/qgis/QGIS-Web-Client" target="_blank">https://github.com/qgis/QGIS-Web-Client</a><br>
<br>
but when execute a sample query in Firefox, like written in the<br>
search.wsgi file, Firefox only visualize the file search.wsgi like a<br>
text file.<br>
<br>
and I have the error<br>
"illegal character<br>
   #!/usr/bin/python"<br>
<br>
So I not understand the problem....<br>
<br>
Thanks!!<br>
<br>
<br>
<br>
2015-04-22 10:51 GMT+04:00 Bernhard Ströbl <<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><br></span>
<mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>>>:<span class=""><br>
<br>
    Hi,<br>
<br>
    the wsgi-Script is a script to be run _on the server_, not in the<br>
    client.<br>
<br>
    Bernhard<br>
<br>
    Am 22.04.2015 08:47, schrieb Enzo Cocca:<br>
<br>
        Hi,<br>
        I have one questionç<br>
<br>
        I try to write a searchtext in the client, Firebug gives the error<br>
        message:<br>
<br>
        "illegal character<br>
           #!/usr/bin/python"<br>
<br>
        Someone have a idea??<br>
<br>
        thanks!!<br>
<br>
<br>
<br>
    __________ Information from ESET Mail Security, version of virus<br>
    signature database 11513 (20150422) __________<br>
<br>
    The message was checked by ESET Mail Security.<br>
    <a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
    _______________________________________________<br>
    Qgis-developer mailing list<br></span>
    <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a> <mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>><br>
    <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
__________ Information from ESET Mail Security, version of virus signature database 11513 (20150422) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Enzo Cocca PhD</div><div dir="ltr">in "Science and Technology for Archaeology and Cultural Heritage"<br><div>mail: <a href="mailto:enzo.ccc@gmail.com" target="_blank">enzo.ccc@gmail.com</a></div><div>cell: +393495087014</div><div><br></div></div></div></div></div>
</div>