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

Bernhard Ströbl bernhard.stroebl at jena.de
Wed Apr 22 05:32:16 PDT 2015


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




More information about the Qgis-developer mailing list