-
Notifications
You must be signed in to change notification settings - Fork 11
Install QGIS Server under Nginx
pwhipp edited this page Oct 30, 2014
·
1 revision
(Nginx is already installed):
~ $ sudo apt-get install qgis qgis-mapserver
...
With all the python stuff it pulls in, it would probably be better running in a virtualenv but I'm not worrying about that now.
Start the fcgi server for qgis (the port is arbitrary but needs to match the nginx configuration):
~ $ sudo spawn-fcgi -d /home/cccs/production/qgis/projects -p 9993 -- /usr/lib/cgi-bin/qgis_mapserv.fcgi
spawn-fcgi: child spawned successfully: PID: 519
Link and setup nginx (the configuration file is here):
~ $ sudo ln -s /home/cccs/production/deploy/production/qgis_server/nginx.conf /etc/nginx/sites-available/qgis_server
~ $ sudo ln -s /etc/nginx/sites-available/qgis_server /etc/nginx/sites-enabled/qgis_server
~ $ sudo service nginx reload
* Reloading nginx configuration nginx [ OK ]
The test url is: http://qgis.crossculturalconsult.com/alaska_lakes.qgis?REQUEST=GetCapabilities
Please add some links here on how to get the actual map to display if you know how.