git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
redirect apache/wsgi output flow to /var/log/apache2/myslice*
[myslice.git]
/
apache
/
myslice.conf
diff --git
a/apache/myslice.conf
b/apache/myslice.conf
index
c994af3
..
8ee84d0
100644
(file)
--- a/
apache/myslice.conf
+++ b/
apache/myslice.conf
@@
-1,6
+1,12
@@
# xxx it might be smarter to install wsgi.py in some other location
# so we don't have to hard-wire these paths here
# xxx it might be smarter to install wsgi.py in some other location
# so we don't have to hard-wire these paths here
+# xxx it might also be helpful to set up a specific log channel for this
+# e.g. in /var/log/myslice.log
<VirtualHost *:80>
<VirtualHost *:80>
+ WSGIDaemonProcess myslice processes=2 threads=25
+ WSGIProcessGroup myslice
+ CustomLog ${APACHE_LOG_DIR}/myslice-access.log common
+ ErrorLog ${APACHE_LOG_DIR}/myslice-error.log
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/myslice/wsgi.py
<Directory /usr/share/unfold/myslice>
<Files wsgi.py>
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/myslice/wsgi.py
<Directory /usr/share/unfold/myslice>
<Files wsgi.py>
@@
-23,6
+29,10
@@
# this to be optional on that port
<VirtualHost *:443>
# this to be optional on that port
<VirtualHost *:443>
+ WSGIDaemonProcess myslice-ssl processes=2 threads=25
+ WSGIProcessGroup myslice-ssl
+ CustomLog ${APACHE_LOG_DIR}/myslice-ssl-access.log common
+ ErrorLog ${APACHE_LOG_DIR}/myslice-ssl-error.log
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/myslice/wsgi.py
<Directory /usr/share/unfold/apache>
<Files myslice.wsgi>
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/myslice/wsgi.py
<Directory /usr/share/unfold/apache>
<Files myslice.wsgi>