[QGIS-Developer] QGIS server landing page when running as fastcgi?

Alessandro Pasotti apasotti at gmail.com
Wed Feb 3 05:20:49 PST 2021


Hi Richard,

I've put up an example with Apache here:
https://github.com/elpaso/qgis-server-docker

Landing page works out of the box and there is a sample project too.

I'm also having problems seeing the logs from QGIS into the apache
logs though but I cannot spend more time on that now, I don't know at
this point if it's a QGIS issue (not writing to "FCGI_stderr" instead
of "cerr") or if it is mod_fcgid or anything else.

We have mostly switched everything to nginx now and I can't remember
seeing the issue there.

Maybe other server devs know more about logging under apache/FCGI?

Cheers


On Tue, Feb 2, 2021 at 4:40 PM Alessandro Pasotti <apasotti at gmail.com> wrote:
>
> On Tue, Feb 2, 2021 at 3:16 PM Richard Duivenvoorde <rdmailings at duif.net> wrote:
> >
> > On 2/2/21 2:39 PM, Alessandro Pasotti wrote:
> >
> > > Have a look to
> > > https://docs.qgis.org/3.16/en/docs/server_manual/config.html#environment-variables
> > >
> > > You are also using the deprecated QGIS_SERVER_LOG_FILE, use
> > > QGIS_SERVER_LOG_STDERR instead.
> > >
> > > And: QGIS_SERVER_LOG_LEVEL=0 as explained in the a.m. documentation.
> >
> > I'm looking here:
> >
> > https://docs.qgis.org/testing/en/docs/server_manual/config.html#qgis-server-logging
> > https://docs.qgis.org/testing/en/docs/server_manual/getting_started.html#httpserver
> >
> > Too many possible combinations ... :-(
>
> I agree: it's getting better but it's still a mess, anyway: STDERR is
> the way to go.
>
> >
> > > QGIS_DEBUG will do anything if you don't have a debug build.
> >
> > I do have QGIS_DEBUG builds
> >
> > Anyway, I give up. Apparently my linux/qgis/tech/knowledge/magic level is too low to run this beast at this moment.
>
> I'd say that if **you** cannot make it work we have a serious problem.
>
> I'll try to set an example up but at the moment I have too much on my
> plate and I'm busy with bug fixing: it may take a while.
>
> Did you check QGIS_SERVER_API_RESOURCES_DIRECTORY is pointing to
> resources? The default path is calculated by joining
> QgsApplication::pkgDataPath() with "resources/server/api"
>
> Also, you didn't answer my first question (or I missed it): instead of
> the expected landing page, what HTML/XML do you get in the browser?
>
> Note that the landing page will only be served for URL /, so
> http://myserver/ but not for http://myserver/whatever
>
> >
> > Thanks for your time Ale! Sorry for not making it work.
>
> You'll make it eventually, don't give up!
>
> >
> > Regards,
> >
> > Richard
>
>
>
> --
> Alessandro Pasotti
> QCooperative:  www.qcooperative.net
> ItOpen:   www.itopen.it



-- 
Alessandro Pasotti
QCooperative:  www.qcooperative.net
ItOpen:   www.itopen.it


More information about the QGIS-Developer mailing list