Welcome! Log In Create A New Profile

Advanced

Wordpress css style sheets not loaded

Posted by corby 
Wordpress css style sheets not loaded
November 08, 2012 04:43PM
Hi All,

I managed to start up nginx with php-fpm and wordpress. The site page loads up only the text but I found out it doesn't load up the .css style sheets.

This is a portion of my sites-available/site.com file

location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000; # port where FastCGI processes were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/site/$fastcgi_script_name; # same path as above
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param HTTP_HOST $host;
include /etc/nginx/fastcgi_params;
include /etc/nginx/mime.types;
}

The top of the mime.types contain :
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
application/atom+xml atom;
application/rss+xml rss;



I tried to include the lines below in my site.com file but didn't help:
location ~ \.css {
add_header Content-Type text/css;
}

Any help is much appreciated. Thanks in advance

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

Click here to login

Online Users

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