<div dir="ltr"><div><div><div><div>the config additional you write it in apache config or in default?<br></div>because if I add it in default, I have the same error.<br><br></div>I will try again. When I will find the solution <span id="result_box" class="" lang="en"><span class="">i will let you know</span></span><br><br></div>Thanks a lot<br><br></div>EC<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-22 12:22 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>
I am no Apache pro at all :-)<br>
<br>
My config additionally contains the following:<br>
<Directory /path/to/wsgi><br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
I wonder if the user running the apache process can access /home/www, normally you would use something like /var/www/wsgi or /srv/www/wsgi<br>
similar to where your HTML stuff is (and QWC)<br>
<br>
Bernhard<span class=""><br>
<br>
Am 22.04.2015 10:12, 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="">
Thanks Bernard<br>
<br>
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>
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>
and<br>
<br>
in /etc/apache2/sites-available/default<br>
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>
and than I restarted apache<br>
<br>
Where I wrong?<br>
<br>
<br>
2015-04-22 11:26 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>>>:<div><div class="h5"><br>
<br>
Hi Enzo,<br>
<br>
your error indicates that the script is not executed as a server<br>
script but instead delivered to the client. Thjis should not happen,<br>
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<br>
section 6.2.1 of the QWC documentation?<br>
<br>
You also should follow this line (section 6 the documentation): "It<br>
is recommended to install the wsgi scripts in a separate directory,<br>
e.g. /home/www/wsgi, a place that is not reachable by regular web<br>
traffic."<br>
<br>
Bernhard<br>
<br>
Am 22.04.2015 09:15, schrieb Enzo Cocca:<br>
<br>
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<br>
<<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a> <mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>><br></div></div>
<mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><div><div class="h5"><br>
<mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>>>>:<br>
<br>
Hi,<br>
<br>
the wsgi-Script is a script to be run _on the server_, not<br>
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<br>
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<br>
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>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>><br></div></div>
<mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><span class=""><br>
<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>
<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>
<br>
<br>
</span></blockquote>
<br><div class="HOEnZb"><div class="h5">
<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>