<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am having trouble getting Mono to work with nginx. I installed my OS (OpenBSD 5.3) and set up ports. I built mono, mono-xsp and nginx - all without incident. All three appear to be working OK, but not in conjunction.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am trying to run the default MVC3 web app, but keep getting a 502 (Bad gateway). In the log, I see the following:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">[crit] 31764#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No such file or directory) while connecting to upstream,<br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The frustrating thing here is that /tmp/fastcgi.socket does actually exist. I tried 'touch' and making sure 'wheel' has the appropriate permissions. The result of 'ls -la /tmp/fastcgi.socket' revealed nothing awry.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Does anyone have any ideas/hints?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div><div style="font-family:arial,sans-serif;font-size:13px">To try and save time, here is my config:<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>worker_processes 1;</div><div><br></div><div>events {</div><div> worker_connections 1024;</div>
<div>}</div><div><br></div><div>http {</div><div> include mime.types;</div><div> default_type application/octet-stream;</div><div> </div><div> </div><div> server {</div><div> listen 80;</div>
<div>
access_log /home/www/nginx.log;</div><div> error_log /home/www/errors.log;</div><div> </div><div> # root /home/www/test;</div><div> # index index.html index.htm index.aspx default.aspx;</div>
<div><br></div><div> location ^~ /Scripts/ { }</div><div> location ^~ /Content/ { }</div><div><br></div><div> location / {</div><div> root /home/www/test;</div><div> # fastcgi_index /Home/Index;</div>
<div><br></div><div> fastcgi_pass unix:/tmp/fastcgi.socket;</div><div> # include fastcgi_params;</div><div> include /etc/nginx/fastcgi_params;</div><div> }</div><div> }</div>
<div>}</div><div><br></div><div><br></div><div><br></div><div>Thanks</div><div style>G</div></div></div>