Welcome! Log In Create A New Profile

Advanced

Re: Execute python files with Nginx

Sanjeev Kumar
September 05, 2015 12:38PM
Hello nitin
Please check this configuration.It works for you.
Server {

listen localhost:8080;

listen [::]:8060 ipv6only=on;

root /var/www;

index index.html index.htm index.py;

location /html/ {

# Disable gzip (it makes scripts feel slower since they have to
complete

# before getting gzipped)

gzip off;

# Set the root to /usr/lib (inside this location this means that we
are

# giving access to the files under /usr/lib/cgi-bin)

#root /var/www;

# Fastcgi socket

fastcgi_pass unix:/var/run/fcgiwrap.socket;

# Fastcgi parameters, include the standard ones

include /etc/nginx/fastcgi_params;

# Adjust non standard parameters (SCRIPT_FILENAME)

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

}

}

--
Posted via http://www.ruby-forum.com/.

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

Execute python files with Nginx

Nitin Solanki August 06, 2015 07:28AM

Re: Execute python files with Nginx

Alt August 06, 2015 07:49AM

Re: Execute python files with Nginx

Nitin Solanki August 06, 2015 07:54AM

Re: Execute python files with Nginx

Shannon Burns August 07, 2015 03:22PM

Re: Execute python files with Nginx

Nitin Solanki August 07, 2015 04:14PM

Re: Execute python files with Nginx

Daniel Theodoro August 11, 2015 08:52AM

Re: Execute python files with Nginx

Nitin Solanki August 11, 2015 01:34PM

Re: Execute python files with Nginx

Shannon Burns August 11, 2015 01:54PM

Re: Execute python files with Nginx

Nitin Solanki August 11, 2015 01:56PM

Re: Execute python files with Nginx

Sanjeev Kumar September 05, 2015 12:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
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