Hello,
My Nginx setup works with an index.html file but when I try to create
an 'Default.aspx' file I get
502 Bad Gateway
with "nginx/1.6.3" displayed underneath.
I basically followed these instructions:
http://www.mono-project.com/docs/web/fastcgi/nginx/
and installed mono 4.6 and xsp from source. On CentOS 7.2.
path of "main" conf: /etc/nginx/nginx.conf
my conf file path: /etc/nginx/sites-available/mydomain.com.conf
with a link from /etc/nginx/sites-enabled/mydomain.com.conf to
/etc/nginx/sites-available/mydomain.com.conf
Both the index.html file and Default.aspx reside in the directory:
/var/www/mydomain.com/public_html
When I enter "mydomain.com" in a browser than the index.html page is displayed correctly.
But when I enter "mydomain.com/Default.aspx" then I get the 502 error.
One potential hiccup is when I entered this instruction:
fastcgi-mono-server4 /applications=www.skippyvondrake.com:/:/var/www/skippyvondrake.com/public_html/ /socket=tcp:127.0.0.1:9000
the command prompt never returns
Please point out the mistakes. Trying to do the "right" way of configuring is difficult when so many sights seem to have different conf setups.
Some of them seem to contradict each other.
My Default.aspx file:
====================
<%@ Page AutoEventWireup="true" Language="C#" ContentType="text/plain" %>
<script runat="server">
void Page_Load(object sender, EventArgs e)
{
this.Response.Write("Hello World!");
}
</script>
===================