From 9e6d996f4305a779421f1e76fdb40d68548dd15f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 16 Sep 2022 09:48:29 +0300 Subject: Config: Add apache2 sample config file --- etc/qcapp_apache2.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 etc/qcapp_apache2.conf 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 @@ + + # Add machine's IP address + ServerName qc.localhost + + DocumentRoot /home/fredm/gnqc_py/qc_app + + + Order allow,deny + Allow from all + + + # 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 + \ No newline at end of file -- cgit v1.2.3