Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Reverse Proxy Issue with Nginx
I have hosted a Flask app using gunicorn on a port on my VM IP address. The app is accessible via http://ip_address:port. Now I want to access via a subdomain. I have the A record to redirect the subdomain and domain to the vm public IP.
I have installed nginx and it is perfectly hosting the default nginx page on when accessed via IP address but it giving an error ERRCONNECTIONREFUSED when trying to access via IP address.
Can anyone point me to the right direction as to how I can resolve this error?Further, how can I redirect/reverse proxy the subdomain to ipaddress:port where my actual app is hosted with an SSL
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×