[Qgis-developer] Qgis web client search
Mira Maric
mmmxxxm at gmail.com
Thu Jan 16 03:09:43 PST 2014
I set up Apache config file:
insert following lines:
- LoadModule wsgi_module modules/mod_wsgi.so
and
WSGIScriptAlias /wsgi C:\OSGeo4W\apache\htdocs\qgis-web-client-master\wsgi
WSGIScriptAliasMatch ^/wsgi/([^/]+)
"C:\OSGeo4W\apache\htdocs\qgis-web-client-master\$1.wsgi"
, after this I create tables in Posgis and modify connection string in
search.wsgi and getSearchGeom.wsgi.
Now when I run web page and try to search in search box I get this error:
Resource interpreted as Script but transferred with MIME type text/plain:
"http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=&searchtables=&query=89&cb=stcCallback1001".
ext-all.js:7
Uncaught SyntaxError: Unexpected token ILLEGAL search.wsgi:1
2014/1/16 Bernhard Ströbl <bernhard.stroebl at jena.de>:
> Hi,
>
> I have no idea, where this is located on Windows...
> but you need to adapt the wsgi files you downloaded from github with QWC to
> your db settings (see section 6.2)!
>
> Bernhard
>
> P.S. please try to reply to the list
>
> Am 16.01.2014 10:17, schrieb Mira Maric:
>
>> Hi!
>> I do the following:
>> I download mod_wsgi.so from
>> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
>> C:\OSGeo4W\apache\modules
>> In Apache config file I added line:
>> -LoadModule wsgi_module modules/mod_wsgi.so
>>
>> I restart apache and turn it on, it's work OK. Now I don't know where
>> to do this, where is file for this settings?
>> I am using Windows!
>>
>> 6.1. Configuration of mod_wsgi
>> ==============================
>>
>> You need to enable mod_wsgi as root. (Ubuntu: a2enmod mod_wsgi).
>>
>> You need to configure apache with the following lines (e.g. in file
>> /etc/apache2/sites-available/default):
>>
>> #mod_wsgi
>> WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}
>> WSGIScriptAlias /wsgi/ /home/www/wsgi/
>> WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi
>>
>>
>>
>> Thanks!
>>
>>
>>
>>
>>
>>
>> 2014/1/16 Mira Maric<mmmxxxm at gmail.com>:
>>>
>>> Hi!
>>> I do the following:
>>> I download mod_wsgi.so from
>>> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in:
>>> C:\OSGeo4W\apache\modules
>>> In Apache config file I added line:
>>> -LoadModule wsgi_module modules/mod_wsgi.so
>>>
>>> I restart apache and turn it on, it's work OK. Now I don't know where
>>> to do this
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Uncaught SyntaxError: Unexpected token ILLEGAL in search.wsgi:1
>>>
>>> 2014/1/16 Bernhard Ströbl<bernhard.stroebl at jena.de>:
>>>>
>>>> Hi,
>>>>
>>>> did you configure the wsgi scripts to match your database and did you
>>>> provide the search tables in the database?
>>>> Both is described in the README (section 6) [1]
>>>>
>>>> Bernhard
>>>>
>>>> [1] https://github.com/qgis/QGIS-Web-Client
>>>>
>>>> Am 16.01.2014 07:33, schrieb Mira Maric:
>>>>>
>>>>>
>>>>> 1.
>>>>>
>>>>>
>>>>> First I added line in Apache config file:
>>>>> -LoadModule wsgi_module modules/mod_wsgi.so
>>>>>
>>>>> 2.
>>>>>
>>>>>
>>>>> In GlobalOption.js I set var useGeoNamesSearchBox = false; var
>>>>> searchBoxQueryURL
>>>>>
>>>>> ="http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=";
>>>>> var searchBoxGetGeomURL
>>>>>
>>>>> ="http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi";
>>>>>
>>>>> When i try to search, i do not get anything! Is there any example for
>>>>> searching setup?
>>>>>
>>>>>
>>>>>
>
>
>
> __________ Information from ESET Mail Security, version of virus signature
> database 9296 (20140115) __________
>
> The message was checked by ESET Mail Security.
> http://www.eset.com
>
>
More information about the Qgis-developer
mailing list