aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/qcapp_apache2.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/qcapp_apache2.conf b/etc/qcapp_apache2.conf
new file mode 100644
index 0000000..850b5b2
--- /dev/null
+++ b/etc/qcapp_apache2.conf
@@ -0,0 +1,19 @@
+<VirtualHost *:80>
+ # Add machine's IP address
+ ServerName qc.localhost
+
+ DocumentRoot /home/fredm/gnqc_py/qc_app
+
+ <Proxy *>
+ Order allow,deny
+ Allow from all
+ </Proxy>
+
+ # Serve application via gunicorn
+ ProxyPass / http://127.0.0.1:5050/
+ ProxyPassReverse / http://127.0.0.1:5050/
+
+ ErrorLog ${APACHE_LOG_DIR}/gnqc_py.error.log
+ LogLevel warn
+ CustomLog ${APACHE_LOG_DIR}/gnqc_py.access.log combined
+</VirtualHost> \ No newline at end of file