Welcome! Log In Create A New Profile

Advanced

nginx : simple configuration with proxy_pass fail

Posted by geo667 
nginx : simple configuration with proxy_pass fail
April 15, 2019 05:32PM
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: /...



Edited 1 time(s). Last edit at 04/15/2019 05:34PM by geo667.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready