-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.conf
61 lines (49 loc) · 1.71 KB
/
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
<VirtualHost *:80>
ServerAdmin webmaster@localhost
#LogLevel info
LogLevel alert
TransferLog /proc/self/fd/1
ErrorLog /proc/self/fd/1
# QGIS server config
Header set Access-Control-Allow-Origin "*"
<IfModule mod_fcgid.c>
# Rewrite Needed for QGIS plugins auth
RewriteEngine on
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Longer timeout for WPS... default = 40
FcgidIOTimeout 120
FcgidInitialEnv LC_ALL "en_US.UTF-8"
FcgidInitialEnv PYTHONIOENCODING UTF-8
FcgidInitialEnv LANG "en_US.UTF-8"
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL "0"
FcgidInitialEnv QGIS_SERVER_LOG_STDERR "1"
FcgidInitialEnv QGIS_SERVER_LANDING_PAGE_PROJECTS_DIRECTORIES "/qgis_projects/"
FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING "1"
# Pass display number to QGIS Server instances
FcgidInitialEnv DISPLAY ":99"
FcgidInitialEnv HOME "/"
FcgidConnectTimeout 20
IdleTimeout 300
BusyTimeout 300
ProcessLifeTime 7200
IPCConnectTimeout 300
IPCCommTimeout 7200
</IfModule>
<Directory "/">
RewriteEngine On
RewriteBase "/"
RewriteCond %{REQUEST_URI} !qgis_mapserv.fcgi
RewriteRule .* /cgi-bin/qgis_mapserv.fcgi$1 [L]
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +FollowSymLinks
AddHandler fcgid-script .fcgi
Allow from all
Require all granted
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet