Hi,<div><span class="Apple-style-span" style="font-family: &#39;DejaVu Sans&#39;, &#39;Bitstream Vera Sans&#39;, Verdana, sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 20px; ">Nginx configuration with mono can see here: </span><a href="http://www.mono-project.com/FastCGI_Nginx">http://www.mono-project.com/FastCGI_Nginx</a><br>
<div>The error info looks like mono&#39;s, so i think you&#39;d better to check mono&#39;s config.</div><div><div><br><div class="gmail_quote">2010/8/19 Shih-Chi Chen <span dir="ltr">&lt;<a href="mailto:shihchichen2011@u.northwestern.edu">shihchichen2011@u.northwestern.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br><br>I am trying to run <a href="http://asp.net" target="_blank">asp.net</a> mvc with nginx under ubuntu Linux.<br>
<br>Here is part of my setting for /etc/nginx/sites-available/default<br><br>ver {<br>         listen   80;<br>         server_name  localhost;<br>
        
 access_log   /var/log/nginx/your.domain1.xyz.access.log;<br><div> <br>        
 location / {<br>                 root /var/www/MvcTest;<br>                
 index Default.aspx Index.aspx;<br>        
         fastcgi_index Index.aspx;<br>                 fastcgi_pass <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;<br>                
 include /etc/nginx/fastcgi_params;<br><br><br>MvcTest is from publishing an MVC project from visual studio 2008. The code is autogenerated by visual studio so it&#39;s very simple. It can show simple greeting message.\<br>

The folder has sub-directories like bin, Content, Scripts, Views and etc. Index.aspx is under Views/Home<br><br>However when i try to run that on nginx with <br>sudo fastcgi-mono-server2 /applications=localhost:/:/var/www/MvcTest/ /socket=tcp:<a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a><br>

<br>I got Error 404<br><br><h1>Server Error in &#39;/&#39; Application</h1><hr style="color:silver"><h2><em>The
 resource cannot be found.</em></h2>
<p><strong>Description: </strong>HTTP 404. The resource you are looking 
for (or one of its dependencies) could have been removed, had its name 
changed, or is temporarily unavailable.  Please review the following URL
 and make sure that it is spelled correctly.</p>
<hr style="color:silver"><strong>Version information: </strong> 
Runtime: <tt>Mono 2.4.4</tt>; <a href="http://ASP.NET" target="_blank">ASP.NET</a> Version: <tt>2.0.50727.1433</tt><br></div> <br clear="all"><br>I am guessing is it because nginx didnt find Index.aspx?<br>I tried the similar thing with nginx-default and it worked well.<br>

<br>However if i put nginx-default under another folder called deepFolder and set root to deepFolder, the index.html will not be displayed and that&#39;s why i had this assumption.<br><br>Would you give me some advices?<br>

<br>Sincerely Yours<br><br>Steven Shih-Chi Chen<br><font color="#888888"><br><br>-- <br>Steven Shih-Chi Chen<br><br>MS Candidate in Computer Engineering<br>McCormick School of Engineering and Applied Science<br>Northwestern University<br>
(847) 845-1519<br>
<a href="http://software.shihchichen.co.cc/" target="_blank">http://software.shihchichen.co.cc/</a><br><br>
</font><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>    ||   ||                           <br>    ||   ||                           <br>    ||| |||  ||||   ||  ||   |||||    <br>    || | ||     ||  || |||  ||        <br>
    || | ||     ||  |||     ||        <br>    || | ||  |||||  ||       ||||     <br>    ||   || ||  ||  ||          ||    <br>    ||   || ||  ||  ||          ||    <br>    ||   ||  |||||  ||      |||||     <br>
</div></div></div>