[Qgis-developer] qgis-web-client: module wsgi

Enzo Cocca enzo.ccc at gmail.com
Wed Apr 22 13:15:40 PDT 2015


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.stroebl at 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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Enzo Cocca PhD
in "Science and Technology for Archaeology and Cultural Heritage"
mail: enzo.ccc at gmail.com
cell: +393495087014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150423/dfd543c2/attachment.html>


More information about the Qgis-developer mailing list