[Qgis-user] questions for qgis server deployment

sebastian at indomitux.com sebastian at indomitux.com
Sat Mar 1 05:52:09 PST 2025


Hi everyone,

I am in the process of configuring a QGIS server, but I’m encountering 
some confusion around certain variables and concepts in the 
documentation.

What I aim to deploy is a server with a PostGIS backend, with different 
schemas for various projects, and MapStore for queries and dashboards.

Using the `qgis.demo.conf` from the documentation, I have the following 
configuration:

```
   # Default QGIS project
   SetEnv QGIS_PROJECT_FILE /home/qgis/projects/world.qgs

   # QGIS_AUTH_DB_DIR_PATH must point to a directory writable by the 
Server's FCGI process user
   FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH "/home/qgis/qgisserverdb/"
   FcgidInitialEnv QGIS_AUTH_PASSWORD_FILE 
"/home/qgis/qgisserverdb/qgis-auth.db"

   # Set PostgreSQL access via the pg_service file
   SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf
   FcgidInitialEnv PGPASSFILE "/home/qgis/.pgpass"
```

Here are my questions:

a) Is it possible to use a QGIS project file, like in the example above, 
while also using PostGIS as a backend service?

b) The variables `QGIS_AUTH_DB_DIR_PATH` and `QGIS_AUTH_PASSWORD_FILE` 
are not documented in the "6.2. Environment Variables" section. Could 
you clarify what these are used for?

c) As far as I know, `PGSERVICEFILE` doesn’t include a variable for 
specifying a schema other than `public`. So, is the only option to 
define the schema in the connection string in the `QGIS_PROJECT_FILE` 
variable?

d) Once I have everything configured, should pointing my browser to 
`qgis_mapserv.fcgi` bring up a basic catalog with the projects stored in 
the database?

Thanks in advance, wish you a nice weekend!

--
seb


More information about the QGIS-User mailing list