Welcome! Log In Create A New Profile

Advanced

Re: ASP.NET pages with nginx

March 02, 2014 05:32AM
Hi All,

I am also stuck trying to load aspx pages with raspberry pi and nginx.

I start the mono server with the below line:
sudo fastcgi-mono-server4 /applications=localhost:/:/home/pi/var/www/ /soket=tcp:127.0.0.1:9000

and nginx with the following:
sudo /etc/init.d/nginx start

and the output I get is

-------------------------------------------------------
No Application Found

Unable to find a matching application for request:

Host 10.75.2.5
Port 80
Request Path /Default.aspx
Physical Path /home/pi/var/www/Default.aspx
-------------------------------------------------------


Please find below all my files.
Could you please help me to find out what i am missing to get this simple page up and running?
_____________________________________________________________________________________________

my /etc/nginx/sites-available/default file is as follows:

server {
listen 80;
server_name localhost;

location /{
root /home/pi/var/www/;
index index.html index.htm default.aspx Default.aspx;

include /etc/nginx/fastcgi_params;
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
}
}

_____________________________________________________________________________________________
my /etc/nginx/fastcgi_params:

fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;

fastcgi_param HTTPS $https;
fastcgi_param PATH_INFO "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


_____________________________________________________________________________________________
my /home/pi/var/www/Default.aspx file:

<html>
<body bgcolor="yellow">
<center>
<h2>Hello World!</h2>
</center>
</body>
</html>
SubjectAuthorPosted

ASP.NET pages with nginx

parnicanFebruary 10, 2014 04:54AM

Re: ASP.NET pages with nginx

Jonathan MatthewsFebruary 10, 2014 10:28AM

Re: ASP.NET pages with nginx

parnicanFebruary 10, 2014 10:35AM

Re: ASP.NET pages with nginx

parnicanFebruary 10, 2014 11:12AM

Re: ASP.NET pages with nginx

parnicanFebruary 10, 2014 12:08PM

Re: ASP.NET pages with nginx

Jonathan MatthewsFebruary 11, 2014 07:28AM

Re: ASP.NET pages with nginx

parnicanFebruary 11, 2014 07:44AM

Re: ASP.NET pages with nginx

Jonathan MatthewsFebruary 11, 2014 08:54AM

Re: ASP.NET pages with nginx

parnicanFebruary 11, 2014 08:58AM

Re: ASP.NET pages with nginx

parnicanFebruary 11, 2014 09:09AM

Re: ASP.NET pages with nginx

Jonathan MatthewsFebruary 11, 2014 10:08AM

Re: ASP.NET pages with nginx

parnicanFebruary 11, 2014 10:41AM

Re: ASP.NET pages with nginx

pumizMarch 02, 2014 05:32AM

Re: ASP.NET pages with nginx

Maxim DouninMarch 02, 2014 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready