Hello!
On Mon, Sep 22, 2014 at 8:03 PM, Vidy Videni wrote:
> I add this location below to nginx config file , reload it , and curl
> "http://localhost/echo" .it returns 404 Not Found. any reason ? I recompile
> this module to nginx twice, so I don't think something wrong with
> compilation, and their versions match. any help will be appreciated.
> location /echo {
Your other regex locations in the same nginx.conf might have
overridden this "location /echo" (because regex locations takes
priority over prefix locations). Try adding "=" to make your location
the top priority (the exact location):
location = /echo {
...
}
> 2014/09/23 11:09:14 [error] 6580#0: *337 open() "/var/www/echo" failed (2: No such file
> or directory), client: 127.0.0.1, server: idp.local, request: "GET /echo HTTP/1.1", host:
> "idp.local"