forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug 914801 - provide sample apache config
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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.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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters