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

Enzo Cocca enzo.ccc at gmail.com
Wed Apr 22 05:07:05 PDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150422/42348673/attachment.html>


More information about the Qgis-developer mailing list