|
|
@@ -10,7 +10,7 @@ run as user `nilm`. |
|
|
|
First, create a WSGI script `/home/nilm/nilmdb.wsgi` containing: |
|
|
|
|
|
|
|
import nilmdb.server |
|
|
|
application = nilmdb.server.wsgi_application("/home/nilm/db") |
|
|
|
application = nilmdb.server.wsgi_application("/home/nilm/db") |
|
|
|
|
|
|
|
Then, set up Apache with a configuration like: |
|
|
|
|
|
|
@@ -20,9 +20,9 @@ Then, set up Apache with a configuration like: |
|
|
|
WSGIDaemonProcess nilmdb threads=32 user=nilm |
|
|
|
|
|
|
|
# Access control example: |
|
|
|
<Location /nilmdb> |
|
|
|
Order deny,allow |
|
|
|
Deny from all |
|
|
|
Allow from 1.2.3.4 |
|
|
|
</Location> |
|
|
|
<Location /nilmdb> |
|
|
|
Order deny,allow |
|
|
|
Deny from all |
|
|
|
Allow from 1.2.3.4 |
|
|
|
</Location> |
|
|
|
</VirtualHost> |