Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

nginx : simple configuration with proxy_pass fail

$
0
0
Hello

I try a simple configuration with an nginx v1.10.13. The configuration :

events
{

}

http
{
server
{
listen 80;

location = /loc1
{
proxy_pass http://192.168.0.5:80/;
}
}
}


and try this configuration with curl --data "param1=XXX" -X POST http://192.168.0.4:80/loc1

I watch 192.168.0.5 incoming connection and nothing come.

I really don't understand what is wrong, the configuration is very simple. I match all connexion on port 80, and all loc1 location. So why my curl command fail ? curl command return Not found: /...

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>