My NGINX server doesn't use my *.less file

Posted by Nicolas on Server Fault See other posts from Server Fault or by Nicolas
Published on 2013-10-25T15:37:47Z Indexed on 2013/10/25 15:56 UTC
Read the original article Hit count: 546

Filed under:
|
|

On my NGINX server, I use a LESS file instead of a CSS file.
But my web page is displayed without any style.
I tried on Apache and it works great.
So I tried to add the less mime-type to nginx in the file /etc/nginx/mime.types :

types {
    text/css                              css less;

And

types {
    text/less                             less;

None of these two try work.
Does anyone knows how to use LESS files with NGINX ?

© Server Fault or respective owner

Related posts about nginx

Related posts about mime-type