1
我无法使Mono与nginx一起工作。我安装了OpenBSD 5.3并设置了适当的(包)端口。我构建了mono,mono-xsp和nginx - 全部没有发生。所有三个似乎工作正常,但不结合。502(Bad Gateway) - Nginx + Mono(OpenBSD 5.3)
我想运行默认的VS MVC3模板的Web应用程序,但不断收到502(坏的网关)。在错误日志中,我看到以下内容:
[crit] 31764#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No such file or directory) while connecting to upstream,*
令人沮丧的是/tmp/fastcgi.socket确实存在。我尝试了'touch'并确保'wheel'和'www'具有适当的权限(chmod 775和777)。 'ls -la /tmp/fastcgi.socket'的结果显示没有任何错误。
这里是我的配置:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
server {
listen 80;
access_log /home/www/nginx.log;
error_log /home/www/errors.log;
# root /home/www/test;
# index index.html index.htm index.aspx default.aspx;
location ^~ /Scripts/ { }
location ^~ /Content/ { }
location/{
root /home/www/test;
# fastcgi_index /;
fastcgi_pass unix:/tmp/fastcgi.socket;
# include fastcgi_params;
include /etc/nginx/fastcgi_params;
}
}
}
谢谢梅尔文 - 你当场。我现在可以提供一个简单的aspx文件(OpenBSD的nginx port chroot(8)到/ var/www/,所以套接字应该存在于某处)。下一站--MVC :-) –
gplumb
2013-05-15 14:11:34