about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-16 09:48:29 +0300
committerFrederick Muriuki Muriithi2022-09-16 09:48:29 +0300
commit9e6d996f4305a779421f1e76fdb40d68548dd15f (patch)
tree81417c06f3b97f5e8ebb08d3640bd2666331d160
parentae4c3ea0a638d5e8caf2ab5f64001bd10ca35129 (diff)
downloadgn-uploader-9e6d996f4305a779421f1e76fdb40d68548dd15f.tar.gz
Config: Add apache2 sample config file
-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