Somehow nginx can't load CSS files and result website showing with no CSS.
In Firefox I got those warning:
The stylesheet http://192.168.1.10:6000/templates/main/css/layout.css was not loaded because its MIME type, "text/html", is not "text/css".
The stylesheet http://192.168.1.10:6000/templates/main/css/jqevent.css was not loaded because its MIME type, "text/html", is not "text/css".
The stylesheet http://192.168.1.10:6000/templates/main/css/crud.css was not loaded because its MIME type, "text/html", is not "text/css".
Nginx Conf
user root;
http {
include /home/school/webapp/nginx/conf/mime.types;
default_type application/octet-stream;
server {
listen 6000;
index index.php index.html index.htm;
root /home/school/webapp/wwwdir/;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}