[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [compass/master] Update sample webapp configuration for Apache.
commit 2fbd350e5d5d4aed1ec731ff66ee2fac49a7ca97
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Thu Aug 16 20:10:45 2012 +0200
Update sample webapp configuration for Apache.
---
README.md | 8 ++++----
app.wsgi | 7 +++++++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 65476bb..0aa2c42 100644
--- a/README.md
+++ b/README.md
@@ -27,11 +27,11 @@ sys.path.append('/path/to/app')
from app import app as application
$ cat /etc/apache2/sites-available/default
-WSGIDaemonProcess yourapplication user=nobody group=nogroup threads=5
-WSGIScriptAlias /test/ /path/to/app.wsgi
+WSGIDaemonProcess compass user=nobody group=compass threads=5
+WSGIScriptAlias /compass /srv/compass.torproject.org/compass/app.wsgi
-<Directory /path/to/app>
- WSGIProcessGroup yourapplication
+<Directory /srv/compass.torproject.org/compass>
+ WSGIProcessGroup compass
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
diff --git a/app.wsgi b/app.wsgi
new file mode 100644
index 0000000..91b7c05
--- /dev/null
+++ b/app.wsgi
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+import os, sys
+sys.path.append('/srv/compass.torproject.org/compass')
+
+from app import app as application
+
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits