lighttpd服务器不提供图像,js或css文件
我尝试lighttpd 。 我用我在这里find的说明configuration了服务器。 在我的configuration文件下面: 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" ) 但是,图像不会显示在浏览器上。 css和js文件似乎也是如此。 由于我的图像是以svg格式,所以我尝试添加到mimetypes中: ".svg" => "image/svg"但没有帮助。 如果我使用Chrome开发人员工具对其进行debugging,则可以看到对于每个图像,css和js文件都有这个错误: "Failed to […]