-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path000-default.conf
115 lines (90 loc) · 3.74 KB
/
000-default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test.wandelderzeit.ch
ServerAlias wandelderzeit.ch
DocumentRoot /var/www/html
# Apache logs (different than QGIS Server log)
ErrorLog ${APACHE_LOG_DIR}/lizmap.error.log
CustomLog ${APACHE_LOG_DIR}/lizmap.access.log combined
# Longer timeout for WPS... default = 40
FcgidIOTimeout 120
FcgidInitialEnv LC_ALL "de_DE.UTF-8"
FcgidInitialEnv PYTHONIOENCODING UTF-8
FcgidInitialEnv LANG "de_DE.UTF-8"
# QGIS log (different from apache logs)
# Specify desired log level. Available values are:
#0 or INFO (log all requests)
#1 or WARNING
#2 or CRITICAL (log just critical errors, suitable for production purposes)
# FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/apache2/qgisserver.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 2
FcgidInitialEnv HOME /home/qgis
FcgidInitialEnv QGIS_DEBUG 0
# default QGIS project
# SetEnv QGIS_PROJECT_FILE /home/qgis/projects/world.qgs
FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY /home/qgis/.cache
FcgidInitialEnv QGIS_SERVER_CACHE_SIZE 500
# QGIS Plugin Pfad
FcgidInitialEnv QGIS_PLUGINPATH /usr/lib/qgis/plugins/
# Lizmap für QGIS-Server
FcgidInitialEnv QGIS_SERVER_LIZMAP_REVEAL_SETTINGS True
# Parallel Rendern, standardmäßig 0 (false)
FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING 1
FcgidInitialEnv QGIS_SERVER_MAX_THREADS 16
# fehlerhafte Layer ignorieren (Standard 0 - false)!!!!
FcgidInitialEnv QGIS_SERVER_IGNORE_BAD_LAYERS 1
# QGIS_AUTH_DB_DIR_PATH must lead to a directory writeable 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 pg access via pg_service file for local user
SetEnv PGSERVICEFILE /home/qgis/.pg_service.conf
FcgidInitialEnv PGPASSFILE "/home/qgis/.pgpass"
# To set pg access via pg_service file for system wide usage
# Linux command: pg_config –sysconfdir to identify the correct folder
# Normally the result is /etc/postgresql-common
# create a file pg_service.conf in that folder like this:
# [water_service]
# host=192.168.0.45
# port=5433
# dbname=gisdb
# user=paul
# password=paulspass
# Define the system font path if own fonts are not used
# If you like to add additional truetype fonts just copy the complete folder with the fonts to "/usr/share/fonts/truetype"
# The path below is the valid for Ubuntu (22.04)
FcgidInitialEnv QT_QPA_FONTDIR "/usr/share/fonts"
# Tell QGIS Server instances to use a specific display number
# FcgidInitialEnv DISPLAY ":99"
# für Lizmap Anmeldedaten PostgreSQL-DB
#FcgidInitialEnv LIZMAP_PGSQL_HOST localhost
#FcgidInitialEnv LIZMAP_PGSQL_DATABASE lizmap
#FcgidInitialEnv LIZMAP_PGSQL_LOGIN admin
#FcgidInitialEnv LIZMAP_PGSQL_PASSWORD "Em444_Lm-13"
# if qgis-server is installed from packages in debian based distros this is usually /usr/lib/cgi-bin/
# run "locate qgis_mapserv.fcgi" if you don't know where qgis_mapserv.fcgi is
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch
Order allow,deny
Allow from all
Require all granted
</Directory>
<IfModule mod_fcgid.c>
FcgidMaxRequestLen 26214400
FcgidConnectTimeout 60
</IfModule>
Alias /webgis/ "/var/www/html/lizmap/lizmap-web-client-3.6.0/lizmap/www/"
<Directory "/var/www/html/lizmap/lizmap-web-client-3.6.0/lizmap/www/">
Options -Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Require all granted
</Directory>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^wandelderzeit\.ch$ [NC]
RewriteRule . https://test.wandelderzeit.ch%{REQUEST_URI} [L,R=301]
RewriteEngine on
RewriteCond %{SERVER_NAME} =test.wandelderzeit.ch
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>