我正在尝试使用fastcgi-mono-server4让Mono使用nginx。 nginx和fastcgi-mono-server4显然是在通信中(我可以使用unix和tcp套接字来实现这一点),但是一旦fastcgi-mono-server4记录获取传入请求(当我用浏览器点击nginx listen url时) ),没有任何反应,nginx超时后会有504网关超时。这是来自fastcgi-mono-server4进程的日志(我以root身份运行所有内容,包括nginx worker进程,以排除权限问题):
$ sudo MONO_OPTIONS="--debug" MONO_IOMAP=all fastcgi-mono-server4 /printlog=True /applications=/test:/home/friis/code/TestingMono/TestingMono/ /socket=tcp:127.0.0.1:9000 /loglevels=Debug
[2013-07-31 21:33:15Z] Debug fastcgi-mono-server4
[2013-07-31 21:33:15Z] Debug Listening on port: 127.0.0.1
[2013-07-31 21:33:15Z] Debug Listening on address: 9000
[2013-07-31 21:33:15Z] Debug Root directory: /home/friism/code/TestingMono/TestingMono
[2013-07-31 21:33:15Z] Debug Max connections: 1024
[2013-07-31 21:33:15Z] Debug Max requests: 1024
[2013-07-31 21:33:15Z] Debug Multiplex connections: False
[2013-07-31 21:33:54Z] Debug Accepting an incoming connection.
[2013-07-31 21:33:54Z] Notice Beginning to receive records on connection.
[2013-07-31 21:33:54Z] Debug Record received. (Type: BeginRequest, ID: 1, Length: 8)
TestingMono
目录包含一个使用xsp4正常运行的ASP.NET应用程序。
有关调试此问题的任何建议吗?
版本:
$ mono --version
Mono JIT compiler version 3.0.12 (master/d6c5db8 Sat Jun 15 20:13:22 PDT 2013)
$ fastcgi-mono-server4 --version
fastcgi-mono-server4.exe 3.0.0.0
更新
nginx config:
server {
listen 8080;
server_name localhost;
access_log /var/log/nginx/your.domain1.xyz.access.log;
location / {
fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/tmp/nginx.socket;
include /etc/nginx/fastcgi_params;
}
}