Configuring reverse proxy for python script
I am struggling to configure apache to reverse proxy to a python webserver running on port 5000. This is the configuration i have used on a regular server without cpanel. Ive put this in the pre and post include section but neither work. What am i doing wrong?
ServerName sub.domain.com
ProxyRequests Off
ProxyVia Off
Require all granted
SSLProxyEngine On
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
-
Hello, There's no support for a reverse proxy configuration in cPanel, but if you want those particular entries (minus the tags) added to all virtual hosts on the server (or just a single virtual host), then you'd use the instructions documented at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Remember to run the following command after setting up a custom include file: /usr/local/cpanel/scripts/ensure_vhost_includes --all-users
Thank you.0
Please sign in to leave a comment.
Comments
1 comment