forked from osm-fr/osmose-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
apache-site
80 lines (67 loc) · 2.17 KB
/
apache-site
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
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName osmose.openstreetmap.fr
ServerAlias osmose.openstreetmap.lu
WSGIScriptAlias / /data/project/osmose/frontend/osmose.wsgi
WSGIDaemonProcess osmose processes=2 threads=15 user=osmose group=osmose
WSGIProcessGroup osmose
DocumentRoot /data/project/osmose/frontend/static/
Alias /robots.txt /data/project/osmose/frontend/static/robots.txt
Alias /favicon.ico /data/project/osmose/frontend/static/favicon.ico
Alias /export /data/work/osmose/export
<Location />
Require all granted
</Location>
<Directory /data/project/osmose/frontend/static/>
AddDefaultCharset UTF-8
AddHandler cgi-script .py
Options FollowSymLinks Indexes MultiViews
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
DirectoryIndex index.html index.py
</Directory>
<Directory /data/work/osmose/export/>
AddDefaultCharset UTF-8
Options FollowSymLinks Indexes MultiViews
AllowOverride None
DirectoryIndex index.html
</Directory>
ExpiresActive On
ExpiresDefault "access plus 1 week"
<LocationMatch /[a-z]*/api>
ExpiresActive Off
</LocationMatch>
<LocationMatch /[a-z]*/byuser>
ExpiresDefault "access plus 5 minutes"
</LocationMatch>
<LocationMatch /[a-z]*/control>
ExpiresDefault "access plus 5 minutes"
</LocationMatch>
<LocationMatch /[a-z]*/error>
ExpiresActive Off
</LocationMatch>
<LocationMatch /[a-z]*/errors>
ExpiresDefault "access plus 5 minutes"
</LocationMatch>
<LocationMatch /[a-z]*/map>
ExpiresActive Off
</LocationMatch>
<LocationMatch /[a-z]*/map/heat>
ExpiresDefault "access plus 1 day"
</LocationMatch>
<LocationMatch /[a-z]*/map/marker>
ExpiresActive Off
</LocationMatch>
<LocationMatch /[a-z]*/map/markers>
ExpiresActive Off
</LocationMatch>
RewriteEngine On
# RewriteCond %{REQUEST_URI} !/maintenance.html$
# RewriteRule !^maintenance.html$ maintenance.html [R=302,L]
RewriteRule ^/$ /map/ [R,L]
RewriteRule ^/map/cgi-bin/index.py$ /map [R,L]
ErrorLog /var/log/apache2/osmose-error.log
LogLevel warn
CustomLog /var/log/apache2/osmose-access.log combined
ServerSignature On
</VirtualHost>