forked from GFDRR/thinkhazard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache.conf
44 lines (40 loc) · 1.08 KB
/
apache.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
WSGIPassAuthorization On
##############
# Public App #
##############
<Location {{INSTANCEPATH}}>
WSGIProcessGroup thinkhazard:{{INSTANCEID}}
WSGIApplicationGroup %{GLOBAL}
Options -Indexes
Header always append X-Frame-Options SAMEORIGIN
</Location>
WSGIDaemonProcess thinkhazard:{{INSTANCEID}} \
display-name=(wsgi:{{INSTANCEID}}) \
user=www-data \
group=staff \
python-path={{PYTHONPATH}} \
processes=4
#############
# Admin App #
#############
<Location {{INSTANCEADMINPATH}}>
WSGIProcessGroup thinkhazard:{{INSTANCEID}}_admin
WSGIApplicationGroup %{GLOBAL}
Order allow,deny
Allow from all
Require valid-user
Satisfy All
AuthType Basic
AuthName "Authentication Required"
AuthUserFile {{AUTHUSERFILE}}
</Location>
WSGIDaemonProcess thinkhazard:{{INSTANCEID}}_admin \
display-name=(wsgi:{{INSTANCEID}}_admin) \
user=www-data \
group=staff \
python-path={{PYTHONPATH}} \
processes=4
# Admin App
WSGIScriptAlias {{INSTANCEADMINPATH}} {{WSGISCRIPT_ADMIN}}
# Public App
WSGIScriptAlias {{INSTANCEPATH}} {{WSGISCRIPT}}