forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapache.conf-dist
40 lines (37 loc) · 1.35 KB
/
apache.conf-dist
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
NameVirtualHost *:80
WSGIPythonPath /data/socorro/application:/data/socorro/socorro-virtualenv/lib/python2.6/site-packages/:/data/socorro/webapp-django/virtualenv/lib/python2.6/site-packages
# Django app, public web UI
<VirtualHost *:80>
ServerName crash-stats.example.com
Alias /static/ "/data/socorro/webapp-django/static/"
WSGIScriptAlias / "/data/socorro/webapp-django/wsgi/socorro-crashstats.wsgi"
</VirtualHost>
# Crash collector, public HTTP POST only
<VirtualHost *:80>
ServerName crash-reports.example.com
TimeOut 300
WSGIScriptAlias / "/data/socorro/application/wsgi/collector.wsgi"
# only allow crash reports up to 20MB
# compress incoming crashes by default
<Location /submit>
LimitRequestBody 20971520
SetInputFilter DEFLATE
</Location>
</VirtualHost>
# Middleware, internal-only API
<VirtualHost *:80>
ServerName socorro-api.example.com
SetEnv DEFAULT_SOCORRO_CONFIG_PATH /etc/socorro
WSGIScriptAlias /bpapi "/data/socorro/application/wsgi/middleware.wsgi"
# this service provides access to sensitive data, protect it!
<Location /bpapi>
Order deny,allow
Deny from all
AuthType Basic
AuthName "Magic Words Please"
AuthUserFile /data/socorro/application/.htpasswd
#Allow from 10.0.0.x
Require valid-user
Satisfy Any
</Location>
</VirtualHost>