Mono を nginx で動作させるのに問題があります。OpenBSD 5.3 をインストールし、適切な (パッケージ) ポートをセットアップしました。mono、mono-xsp、nginx をビルドしましたが、すべて問題なく実行できました。3 つすべてが正常に動作しているように見えますが、連動していません。
デフォルトの VS MVC3 テンプレート Web アプリを実行しようとしていますが、502 (Bad gateway) が発生し続けます。エラー ログには、次のように表示されます。
[crit] 31764#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No such file or directory) while connecting to upstream,*
イライラするのは、 /tmp/fastcgi.socket が存在することです。「タッチ」を試し、「ホイール」と「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;
}
}
}