I am given a try to lighttpd. I configured a server with the instructions I found here.
Below my configuration file:
server.document-root = "<my_site_directory>"
server.port = 4000
server.username = "www"
server.groupname = "www"
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc" )
index-file.names = ( "index.html" )
However, the images do not appear on the browser. The same seems to happen with css and js files. Since my images are in svg format, I tried adding to the mime types: ".svg" => "image/svg"
but it did not help.
If I debug it using Chrome developer tools, I can see that for each image, css and js file I have this error:
"Failed to load resource: net::ERR_CONNECTION_REFUSED "
Just in case, I tried changing the server.username
property to my user name (in case it is a problem of permits) but it did not help.