mirror of https://github.com/kf7eel/hbnet
add webserver example configs for WSGI
This commit is contained in:
parent
ff79dc0356
commit
f6e77dc3e4
|
|
@ -0,0 +1,7 @@
|
|||
import sys
|
||||
sys.path.insert(0, '/var/www/html/hbnet')
|
||||
#from app import hbnet_web_service as application
|
||||
|
||||
from app import hbnet_web_service
|
||||
|
||||
application = hbnet_web_service()
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<virtualhost *:80>
|
||||
ServerName domain.name
|
||||
|
||||
WSGIDaemonProcess hbnet user=hbnet_user group=hbnet_user threads=5 python-home=/opt/hbnet_venv
|
||||
WSGIScriptAlias / /var/www/html/hbnet/hbnet.wsgi
|
||||
|
||||
<directory /var/www/html/hbnet>
|
||||
WSGIProcessGroup hbnet
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIScriptReloading On
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</directory>
|
||||
</virtualhost>
|
||||
Loading…
Reference in New Issue