question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nginx proxy pass does not work

See original GitHub issue

A nginx proxy pass such as the one below does not work. All links go to my base domain instead of domain/site/file*.

location /site {
        proxy_pass    http://localhost:3000;
}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mikegioiacommented, Jun 27, 2014

Try changing your nginx block to this:

location /raneto/ { 
    proxy_pass http://localhost:3000/; 
}

Everything looks correct to me but it could have something to do with the missing trailing slash after the :3000 and location /raneto.

0reactions
r0binarycommented, Apr 22, 2018

I configured everything as described above. It works well for the wiki area, but it seems the paths in the admin area are still not usign the configured base_dir. Can anyone confirm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

proxy - nginx simple proxy_pass to localhost not working
If I ssh to the machine and run curl http://127.0.0.1:3000/ , I get the desired result (and eventually I ran that server on...
Read more >
Nginx Proxy Pass Not Working - Server Fault
Firstly, deployed my node application on port 8080. It is working successfully. Then I installed nginx. Here is my example.com file inside ...
Read more >
NGINX Reverse Proxy Configuration and Troubleshooting
To solve this issue in nginx, need re-install nginx (you may need re-compile) with openssl library (Not LibreSSL provided by Mac OS). 504 ......
Read more >
Using NGINX Proxypass to Set Up a Reverse Proxy Server
This behavior lets your application know it's being accessed by a designated address rather than from 127.0. 0.1.
Read more >
NGINX Reverse Proxy | NGINX Plus - NGINX Documentation
Configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying request headers and fine-tuned buffering of responses.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found