diff options
author | Frederick Muriuki Muriithi | 2022-09-16 09:48:29 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-16 09:48:29 +0300 |
commit | 9e6d996f4305a779421f1e76fdb40d68548dd15f (patch) | |
tree | 81417c06f3b97f5e8ebb08d3640bd2666331d160 /etc | |
parent | ae4c3ea0a638d5e8caf2ab5f64001bd10ca35129 (diff) | |
download | gn-uploader-9e6d996f4305a779421f1e76fdb40d68548dd15f.tar.gz |
Config: Add apache2 sample config file
Diffstat (limited to 'etc')
-rw-r--r-- | etc/qcapp_apache2.conf | 19 |
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 |