<div dir="ltr">Hi all, <br><div style="display:inline-block"><div><span></span></div></div><div><div> </div> </div> <div><div dir="ltr" style="zoom:1"><span lang="en"><span>I</span> <span>looked for a solution</span> <span>but without</span> <span>results.<br><br></span></span></div><div><span lang="en"><span>After set the default file in apache like that:<br><br></span></span></div><div><span lang="en"><span><VirtualHost *:80><br> ServerAdmin webmaster@localhost<br> ServerName <localhost><br><br> DocumentRoot /var/www/html/wms/site<br> <Directory /><br> Options FollowSymLinks<br> AllowOverride None<br> </Directory><br> <Directory /var/www/html/wms/site/><br> DirectoryIndex index.php index.html<br> Options Indexes FollowSymLinks MultiViews<br> AllowOverride None<br> Order allow,deny<br> allow from all<br> Require all granted<br> </Directory><br><br> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br> <Directory "/usr/lib/cgi-bin/"><br> AllowOverride None<br> Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch<br> Order allow,deny<br> Allow from all<br> Require all granted<br> SetEnv QGIS_LOG_FILE /tmp/qgislog.txt<br> </Directory><br> <br> RewriteEngine On <br> RewriteRule ^/cgi-bin/.*$ - [F]<br><br><br> RewriteRule ^/wms/(.+)$ /cgi-bin/qgis_mapserv.fcgi?map=/var/www/html/wms/projects/$1.qgs [QSA,PT]<br> <br> RewriteRule ^/maps/?$ / [PT]<br><br> RewriteRule ^/maps/([^\.]+)$ /qgiswebclient.html [PT]<br> <br> RewriteRule ^/maps/(.*) /$1 [PT]<br> <br> #mod_wsgi<br> #LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so<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> <Directory "/home/www/wsgi/"><br> Order allow,deny<br> Allow from all<br> </Directory><br> <br> ErrorLog ${APACHE_LOG_DIR}/qgis-web-client-error.log<br> CustomLog ${APACHE_LOG_DIR}/qgis-web-client-access.log combined<br><br></VirtualHost><br><br></span></span></div><div><span lang="en"><span>and the GlobaOptions.js like that;<br>//URL for custom search scriptsnull; //<br>var searchBoxQueryURL = "/wsgi/search.wsgi?query="; // null:<br>var searchBoxGetGeomURL = "/wsgi/getSearchGeom.wsgi";//null; //<br><br></span></span></div><div><span lang="en"><span>The status is: </span></span>
<div><div><div><span>NetworkError: 404 Not Found - <a href="http://localhost/wsgi/search.wsgi?query=&searchtables=&query=qqq&cb=stcCallback1001" target="_blank">http://localhost/wsgi/search.wsgi?query=&searchtables=&query=qqq&cb=stcCallback1001</a><br><br></span></div><div><span>So it not found the path of wsgi, but in default config I have give the alias<br><br></span></div><div><span>any idea?<br><br></span></div><div><span>E<br></span></div></div></div></div></div><div class="gmail_extra"><br><br></div></div>