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

Alessandro Pasotti apasotti at gmail.com
Tue Feb 2 07:40:29 PST 2021


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


More information about the QGIS-Developer mailing list