Welcome! Log In Create A New Profile

Advanced

Re: ASP.NET pages with nginx

Maxim Dounin
March 02, 2014 08:12AM
Hello!

On Sun, Mar 02, 2014 at 05:32:43AM -0500, pumiz wrote:

[...]

> 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_FILENAME $document_root$fastcgi_script_name;

In your fastcgi_params the SCRIPT_FILENAME param is set multiple
times, and at least one of the values ($request_filename) is
wrong for the configuration used.

I would recommend you to revert all the modifications to
fastcgi_params, and use

root /home/pi/var/www/;

location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index Default.aspx;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

in the configuration instead. Alternatively, use "fastcgi.conf"
as available for simple configurations, it already has
SCRIPT_FILENAME set:

root /home/pi/var/www/;

location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index Default.aspx;
include fastcgi.conf;
}

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ASP.NET pages with nginx

parnican February 10, 2014 04:54AM

Re: ASP.NET pages with nginx

Jonathan Matthews February 10, 2014 10:28AM

Re: ASP.NET pages with nginx

parnican February 10, 2014 10:35AM

Re: ASP.NET pages with nginx

parnican February 10, 2014 11:12AM

Re: ASP.NET pages with nginx

parnican February 10, 2014 12:08PM

Re: ASP.NET pages with nginx

Jonathan Matthews February 11, 2014 07:28AM

Re: ASP.NET pages with nginx

parnican February 11, 2014 07:44AM

Re: ASP.NET pages with nginx

Jonathan Matthews February 11, 2014 08:54AM

Re: ASP.NET pages with nginx

parnican February 11, 2014 08:58AM

Re: ASP.NET pages with nginx

parnican February 11, 2014 09:09AM

Re: ASP.NET pages with nginx

Jonathan Matthews February 11, 2014 10:08AM

Re: ASP.NET pages with nginx

parnican February 11, 2014 10:41AM

Re: ASP.NET pages with nginx

pumiz March 02, 2014 05:32AM

Re: ASP.NET pages with nginx

Maxim Dounin March 02, 2014 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready