Welcome! Log In Create A New Profile

Advanced

Not forwarding requests to FastCGI server on Windows

Anonymous User
October 18, 2009 11:48PM
Hi,

I'm new to nginx. I'm trying to set up nginx 0.7.62 with a web.py
application via FastCGI. The same app works with another web server.

I ran the web.py app with "code.py fastcgi 8080"

I tried the config below. The server starts fine and loads the
index.html file for "/". But if I try /abcd, I get "404 Not Found"
in the browser and this error in nginx error.log:

2009/10/18 19:57:06 [error] 4568#1572: *9 CreateFile() "D:\Internet\Servers\nginx-0.7.62/html/abcd" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /abcd HTTP/1.1", host: "127.0.0.1"

So it looks like it's not sending the request to the backend FastCGI
server at all. Any idea why this is happening?

server {
listen 80;
server_name _;
index index.html;

location / {
fastcgi_pass 127.0.0.1:8080;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}
}

Thanks,
Jack
Subject Author Posted

Not forwarding requests to FastCGI server on Windows

Anonymous User October 18, 2009 11:48PM

Fwd: Not forwarding requests to FastCGI server on Windows

Anonymous User October 19, 2009 12:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready