Welcome! Log In Create A New Profile

Advanced

Css file 403 error in nginx

Posted by imsanjeev 
Css file 403 error in nginx
September 05, 2015 12:32PM
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 check my configuration why my Css file is not loading on the server.I put it on the var/www/html/myproject.In the my project folder there is a sub folder for css folder inside the css folder all css file are available But css file is not loading 403 error is popedup.
Please reply me as soon as possible it is very urgent

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;

}

}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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