Hi Enzo,
do not put it into html (see section 6 of the QWC documentation) maybe
in that location it is not run as a script but accessed by the browser
as any other html file (remember: I am no expert on this).
Basically you should not see the file at all in the browser, if an error
occurs it should be in Apache's error log.
Be sure ther is no space as the first character of the first line (as
was suggested before).
Bernhard
Am 22.04.2015 22:15, schrieb Enzo Cocca:
I continue to have the problem with mod_wsgi module. I not
understand.... I have set the apache config like suggest bernhard and
I have put my wsgi folder in /var/www/html but I continue to have the error:
illegal charcther #! /usr/bin/python
I have reinstalled libapache2-mod-wsgi, but nothing
I use ubuntu server 14.04 apache 2.4 python 2.7
Thanks at all for help
E
2015-04-22 16:32 GMT+04:00 Bernhard Ströbl <bernhard.stro...@jena.de
<mailto:bernhard.stro...@jena.de>>:
Hi Enzo,
as I wrote in a previous post: Make sure the user running the apache
process has access to the wsgi directory. Try putting the wsgi in
/home/somthing e.g. in /var/www/wsgi
Bernhard
Am 22.04.2015 14:07, schrieb Enzo Cocca:
Hi all,
I looked for a solution but without results.
After set the default file in apache like that:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName <localhost>
DocumentRoot /var/www/html/wms/site
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/wms/site/>
DirectoryIndex index.php index.html
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch
Order allow,deny
Allow from all
Require all granted
SetEnv QGIS_LOG_FILE /tmp/qgislog.txt
</Directory>
RewriteEngine On
RewriteRule ^/cgi-bin/.*$ - [F]
RewriteRule ^/wms/(.+)$
/cgi-bin/qgis_mapserv.fcgi?map=/var/www/html/wms/projects/$1.qgs
[QSA,PT]
RewriteRule ^/maps/?$ / [PT]
RewriteRule ^/maps/([^\.]+)$ /qgiswebclient.html [PT]
RewriteRule ^/maps/(.*) /$1 [PT]
#mod_wsgi
#LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
WSGIDaemonProcess gis processes=5 threads=15
display-name=%{GROUP}
WSGIScriptAlias /wsgi/ /home/www/wsgi/
WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi
<Directory "/home/www/wsgi/">
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/qgis-web-client-error.log
CustomLog ${APACHE_LOG_DIR}/qgis-web-client-access.log combined
</VirtualHost>
and the GlobaOptions.js like that;
//URL for custom search scriptsnull; //
var searchBoxQueryURL = "/wsgi/search.wsgi?query="; // null:
var searchBoxGetGeomURL = "/wsgi/getSearchGeom.wsgi";//null; //
The status is:
NetworkError: 404 Not Found -
http://localhost/wsgi/search.wsgi?query=&searchtables=&query=qqq&cb=stcCallback1001
So it not found the path of wsgi, but in default config I have
give the
alias
any idea?
E
__________ Information from ESET Mail Security, version of virus
signature database 11515 (20150422) __________
The message was checked by ESET Mail Security.
http://www.eset.com
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org <mailto:Qgis-developer@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-developer
__________ Information from ESET Mail Security, version of virus signature
database 11519 (20150423) __________
The message was checked by ESET Mail Security.
http://www.eset.com
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer