Re: Execute python files with Nginx

2015-09-05 Thread Sanjeev Kumar
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 c

Css file 403 error in nginx

2015-09-05 Thread Sanjeev Kumar
Hello I enabled python cgi in nginx server .I create a python simple on the localhost it is showing on the browsers but when i download a html temlate and converted html file to .py file then Css is not loading.403 error is popedup for css file.Please reply me as soon as possible it is very urgent