[Qgis-user] QGIS Server 3.0.3 with NGINX / FastCGI - Sessions not persisting?

Alessandro Pasotti apasotti at gmail.com
Thu Jun 14 08:48:12 PDT 2018


On Thu, Jun 14, 2018 at 4:08 PM, andrew terry <andrew.terry at centremaps.co.uk
> wrote:

> Of course. This is only some closed testing. One element i did note from
> your
> code and some of the docker examples on github was seemingly explicitly
> setting the sockets/processes. I didn't have a problem not doing this with
> 2.18 and haven't seen it in the documentation generally, do i need to
> extend
> my linux knowledge?:
>
> # Configure FastCGI nginx conf
> sed -i -e "s at QGIS_SERVER_DIR@${QGIS_SERVER_DIR}@g"
> /etc/nginx/sites-enabled/qgis-server-fcgi
> SOCKETS=''
> for i in $( eval echo {1..$NUM_PROCESSES}); do SOCKETS="    server
> unix:/run/qgis_mapserv$i.sock;\n$SOCKETS" ; done
> sed -i -e "s at QGIS_SERVER_SOCKETS@${SOCKETS}@g"
> /etc/nginx/sites-enabled/qgis-server-fcgi
>
>
No: that is not necessary, I just did it in order to have some basic load
balancing.

You can have a single server instance listening on a single socket.



>
> Alessandro Pasotti-2 wrote
> > On Thu, Jun 14, 2018 at 3:46 PM, andrew terry <
>
> > andrew.terry at .co
>
> > > wrote:
> >
> >>
> >
> > np, but please keep in mind that my vagrant was prepared for a training
> > course and it wasn't security audited!
> >
> > the goal was to explore all different possibilities to deploy QGIS server
> > (with some focus to Python).
> >
> >
> >
> > Alessandro Pasotti-2 wrote
> >> > Looks good.
> >> >
> >> > I don't know where else to look but if you want a tested working
> >> > configuration you can have a look to:
> >> > https://github.com/elpaso/qgis3-server-vagrant
> >> >
> >> > On Thu, Jun 14, 2018 at 3:34 PM, andrew terry <
> >>
> >> > andrew.terry at .co
> >>
> >> > > wrote:
> >> >
> >> >> Hi Alessandro,
> >> >>
> >> >> Thanks for the thought, i did include the xvfb install and config.
> >> Always
> >> >> double check though and the status report is as follows - only just
> >> >> showing
> >> >> as started as i booted the instance to check:
> >> >>
> >> >> ● xvfb.service - X Virtual Frame Buffer Service
> >> >>    Loaded: loaded (/etc/systemd/system/xvfb.service; enabled; vendor
> >> >> preset:
> >> >> enabled)
> >> >>    Active: active (running) since Thu 2018-06-14 13:23:50 UTC; 37s
> ago
> >> >>  Main PID: 840 (Xvfb)
> >> >>     Tasks: 3 (limit: 4915)
> >> >>    CGroup: /system.slice/xvfb.service
> >> >>            └─840 /usr/bin/Xvfb :99 -screen 0 1024x768x24 -ac
> >> +extension
> >> >> GLX
> >> >> +render -noreset
> >> >>
> >> >> Jun 14 13:23:50 ip-172-31-14-242 systemd[1]: Started X Virtual Frame
> >> >> Buffer
> >> >> Service.
> >> >>
> >> >> Thanks Andy
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.
> html
> >> >> _______________________________________________
> >> >> Qgis-user mailing list
> >> >>
> >>
> >> > Qgis-user at .osgeo
> >>
> >> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Alessandro Pasotti
> >> > w3:   www.itopen.it
> >> >
> >> > _______________________________________________
> >> > Qgis-user mailing list
> >>
> >> > Qgis-user at .osgeo
> >>
> >> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> >> _______________________________________________
> >> Qgis-user mailing list
> >>
>
> > Qgis-user at .osgeo
>
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> >>
> >
> >
> >
> > --
> > Alessandro Pasotti
> > w3:   www.itopen.it
> >
> > _______________________________________________
> > Qgis-user mailing list
>
> > Qgis-user at .osgeo
>
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180614/e7f99339/attachment.html>


More information about the Qgis-user mailing list