nginx.conf
내 Mac 에는 다음 줄이 있습니다 .
location /addPat {
resolver 8.8.8.8;
proxy_pass http://some_url:8080$request_uri;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
이는 Debian을 실행하는 동일한 네트워크의 컴퓨터에서 직접 복사됩니다. 다른 점이 없다.
그러나 해당 지시어는 Linux 상자에서는 완벽하게 작동하지만 Mac에서는 지속적으로 404를 반환합니다. 로그 항목은 다음과 같습니다.
2014/05/12 17:04:35 [error] 437#0: *13 "/usr/local/Cellar/nginx/1.4.6/html/addPat/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /addPat/ HTTP/1.1", host: "localhost"
모든 플랫폼에서 작동할 것으로 예상할 때 일관성이 없어 보이기 때문에 매우 짜증나는 일입니다.
여기서 무슨 문제가 있습니까?