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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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: