Closed sydcurie closed 14 years ago
What version of nginx are you using?
nginx 0.8.49 , after reading ReadMe from agentzh's fork , I used nginx 0.8.41 , eval-module works.But it don't work with my tomcat , I grab the access log , I got this:
127.0.0.1 - - [20/Aug/2010:15:05:48 +0800] "GET /eval_77332040/TestApi/user/view/12.json HTTP/1.0" 404 1072 "-" "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3" the excepted access log should be like this(after I comment eval-module lines in nginx.conf ):
127.0.0.1 - - [20/Aug/2010:15:05:31 +0800] "GET /TestApi/user/view/12.json HTTP/1.0" 200 79 "-" "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"
I don't know why there is "eval_77332040" before the request url , and howto remove this.
try
proxy_pass http://127.0.0.1:8080/$request_uri;
thx, it works for me .. ;-)
Glad that it's working!
I want to use nginx-eval-module to get the response from tomcat , this is my config: eval $res { proxy_pass http://127.0.0.1:8080; } echo $res;
After waiting a long time , it returns nothing.If I do not use nginx-eval-module , just use proxy_pass , it works well , config is like this: proxy_pass http://127.0.0.1:8080;