By sayantans643
My backend application is running on port no:8786 in docker , frontend angular app build is deployed in apache server and it would connect to backend api through http://localhost:8786. But it is giving error as connection refused. What to do?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @sayantans643,
Can you share your Apache configuration files? Usually, you need to use it as proxy and pass it to port 8786.
Having said that, this needs to be configured directly in the virtual configuration file for the domain you are using.
One other thing I can think of on the top of my mind is that you make sure your port is actually opened to the public meaning in your firewall Incoming connections are actually allowed on this port.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.