Welcome! Log In Create A New Profile

Advanced

Re: Python on Nginx

October 11, 2011 02:43PM
My server is as
server { server_name .domain.com;
listen 80;
root /home/domain.com;
index index.html index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /opt/nginx/conf/fastcgi_params;
}
}

You mean to add another location as
location ~ \.py$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.py;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /opt/nginx/conf/fastcgi_params;
}
Subject Author Posted

Python on Nginx

etrader October 11, 2011 10:11AM

Re: Python on Nginx

Francis Daly October 11, 2011 02:10PM

Re: Python on Nginx

Igor Sysoev October 12, 2011 05:10AM

Re: Python on Nginx

Brian Akins October 12, 2011 08:04PM

Re: Python on Nginx

roberto October 12, 2011 11:58PM

Re: Python on Nginx

Brian Akins October 13, 2011 07:00AM

Re: Python on Nginx

Cliff Wells October 12, 2011 09:12PM

Re: Python on Nginx

etrader October 11, 2011 02:43PM

Re: Python on Nginx

Francis Daly October 11, 2011 03:00PM

Re: Python on Nginx

Keith Fernie October 11, 2011 03:08PM

Re: Python on Nginx

Cliff Wells October 11, 2011 03:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready