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