forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapache.conf-dist
28 lines (26 loc) · 925 Bytes
/
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
NameVirtualHost *:80
WSGIPythonPath /data/socorro/application
WSGIPythonHome /data/socorro/socorro-virtualenv
# 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.py"
</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.py"
# 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>