Question

How to proxy_pass to my app. But file not found 404!!

I have react application (next js) run on localhost:7878. And I config nginx in location proxy_pass localhost:7878. And after that i view page source in my browser and open path file js. But can not find it.

What do i have to do?

Thankyou.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

you need to delete other location and put this conf you can see image https://i.imgur.com/uw8EIaW.png ip finder

location / {
 proxy_set_header Host $host;
 proxy_pass https://stats.uptimerobot.com;
 }

Sorry to see that your question hasn’t received an answer yet. Unfortunately, without more information, it is unlikely that an answer for this specific issue can be provided. For people still landing here via search, running a Next.js app in production is much like running any Node app. Check out this tutorial for all the details on getting a Node app running behind an Nginx reverse proxy: