File tree 2 files changed +39
-0
lines changed 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ <VirtualHost *:80>
2
+
3
+ ServerName dircloud.example.org
4
+ ServerAlias dircloud
5
+
6
+
7
+ AddDefaultCharset utf-8
8
+
9
+ WSGIDaemonProcess dircloud user=dircloud group=users processes=1 threads=5
10
+ WSGIScriptAlias / /home/dircloud/www/dircloud/dircloud.wsgi
11
+
12
+ <Directory /home/dircloud/www/dircloud>
13
+ WSGIProcessGroup dircloud
14
+ WSGIApplicationGroup %{GLOBAL}
15
+ Order deny,allow
16
+ Allow from all
17
+ </Directory>
18
+
19
+ </VirtualHost>
Original file line number Diff line number Diff line change
1
+ # -*- mode: python; coding: utf-8 -*-
2
+
3
+ # wsgi interface example for running dircloud under Apache. Sample
4
+ # code based on existing wsgi and bottle docs.
5
+
6
+ import sys
7
+ import os
8
+
9
+ homedir = '/home/dircloud/www/dircloud/'
10
+ sys .path = [homedir ] + sys .path
11
+
12
+ # Change working directory so relative paths (and template lookup) work again
13
+ os .chdir (homedir )
14
+
15
+ import bottle
16
+ import dircloud
17
+
18
+ # ... build or import your bottle application here ...
19
+ # Do NOT use bottle.run() with mod_wsgi
20
+ application = bottle .default_app ()
You can’t perform that action at this time.
0 commit comments