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