From f6e77dc3e4a4bebfcbf59cf2232fc8e923e0198b Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 15 Oct 2021 20:03:48 -0700 Subject: [PATCH] add webserver example configs for WSGI --- web/apache2_examples/hbnet.wsgi | 7 +++++++ web/apache2_examples/hbnet_virtual_host.conf | 14 ++++++++++++++ web/{ => nginx_examples}/wsgi.ini | 0 web/{ => nginx_examples}/wsgi.py | 0 4 files changed, 21 insertions(+) create mode 100644 web/apache2_examples/hbnet.wsgi create mode 100644 web/apache2_examples/hbnet_virtual_host.conf rename web/{ => nginx_examples}/wsgi.ini (100%) rename web/{ => nginx_examples}/wsgi.py (100%) diff --git a/web/apache2_examples/hbnet.wsgi b/web/apache2_examples/hbnet.wsgi new file mode 100644 index 0000000..6091fc4 --- /dev/null +++ b/web/apache2_examples/hbnet.wsgi @@ -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() \ No newline at end of file diff --git a/web/apache2_examples/hbnet_virtual_host.conf b/web/apache2_examples/hbnet_virtual_host.conf new file mode 100644 index 0000000..f6b03f3 --- /dev/null +++ b/web/apache2_examples/hbnet_virtual_host.conf @@ -0,0 +1,14 @@ + + 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 + + + WSGIProcessGroup hbnet + WSGIApplicationGroup %{GLOBAL} + WSGIScriptReloading On + Order deny,allow + Allow from all + + \ No newline at end of file diff --git a/web/wsgi.ini b/web/nginx_examples/wsgi.ini similarity index 100% rename from web/wsgi.ini rename to web/nginx_examples/wsgi.ini diff --git a/web/wsgi.py b/web/nginx_examples/wsgi.py similarity index 100% rename from web/wsgi.py rename to web/nginx_examples/wsgi.py