By alona2156
I try to deploy my nodejs app. It listens on 3000 port. Also nginx does mapping of 80th port to my app on 3000. The problem - when I open browser, and hit my ip address the page loads html and css, but all javascript files throw this failed to load error. I tried to turn off nginx and firewall and link my app to 80th port directly, but I get the same error. Only javascript files fail to load.
Also I looked in my nodejs app logs, there are GET requests for html and css, but no get requests for js files. Like these requests never arrive to nodejs but get blocked somewhere in-between.
I need help.
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 there @alona2156,
What is the exact error that you see in your web console?
Also, are you seeing any errors in your Nginx error log:
- tail -100 /var/log/nginx/error.log
Feel free to share your exact Nginx config here so that I could try to advise you further.
Regards, Bobby
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.