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
Nginx Reverse Proxy Node css not loading
I have a node app running with reverse proxy on nginx. SSL is not enabled as this is a test app which I’m accessing using the public IP. The problem is that the app is loaded with http and the HTML loads correctly, but the CSS and JS files are not loading. After checking the network tab, all the resource files are trying to load with HTTPS which results in ERRCONNECTIONTIME_OUT after a while. When I try to access the CSS files directly with HTTPS changed to HTTP, the file loads up. I have searched for a solution but could not find a solution that works.
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.×