add webserver example configs for WSGI

This commit is contained in:
KF7EEL 2021-10-15 20:03:48 -07:00
parent ff79dc0356
commit f6e77dc3e4
4 changed files with 21 additions and 0 deletions

View File

@ -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()

View File

@ -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>