Lighttpd won't load css stylesheet : did i missed something ?
Added by lcoulon over 14 years ago
Hello
I try to host my web albums with Lighttpd , they are built with Jalbum.
Jalbum uses CSS Stylesheets but when i browse the album with Firefox, i get the following error :
Error: The stylesheet http://sting-carbon.dyndns.org/Sud-Ouest/res/styles.css was not loaded because its MIME type, "application/octet-stream", is not "text/css".
Source File: http://sting-carbon.dyndns.org/Sud-Ouest/
Line: 0
I added the following line into my my lighttpd.conf file :
".css" => "text/css",
Then i re-started Lighttpd web server, but that new line returns an error while reloading :
NSLU2:~# /etc/init.d/lighttpd force-reload
Stopping web server: lighttpd.
Starting web server: lighttpd2010-04-28 10:52:28: (configfile.c.855) source: /etc/lighttpd/lighttpd.conf line: 20 pos: 10 parser failed somehow near here: .css
failed!
Can someone help me ?
Did i forgot to install an extra package for Lighttpd ?
Many thanks for your help,
Replies (4)
RE: Lighttpd won't load css stylesheet : did i missed something ? - Added by spaam over 14 years ago
what does the line before say? maybe you forgot a , on that line.
or show us your config.
RE: Lighttpd won't load css stylesheet : did i missed something ? - Added by lcoulon over 14 years ago
Here is my lighttpd.conf file.
That line produces an error when i reload lighttpd :
mimetype.assign = (
....
".css" => "text/css",
....
)
If i comment it out , lighttpd re-loads properly but CSS stylesheets are not accepted when browsing my page with Firefox : ( IE looks to accept it , i don't know why ... )
lighttpd.conf (2.03 KB) lighttpd.conf |
RE: Lighttpd won't load css stylesheet : did i missed something ? - Added by spaam over 14 years ago
put a , on the end of line 19
then remove # on the begining of line 20 and remove , on the end.
RE: Lighttpd won't load css stylesheet : did i missed something ? - Added by lcoulon over 14 years ago
You get it.
It works fine now, many many thanks for your help !