From 6e559c16c4cd04e4dbc05ce998b522c1eb1aa921 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 31 Jul 2005 13:17:52 +0000 Subject: disable range-requests for acrobat and add 2 new mimetypes git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@495 152afb58-edef-0310-8abb-c4023f1b3aa9 --- doc/lighttpd.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/lighttpd.conf b/doc/lighttpd.conf index 5c41bed5..f2898cac 100644 --- a/doc/lighttpd.conf +++ b/doc/lighttpd.conf @@ -81,6 +81,8 @@ mimetype.assign = ( ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", + ".cpp" => "text/plain", + ".log" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", @@ -117,7 +119,9 @@ accesslog.filename = "/www/logs/access.log" # of the document-root url.access-deny = ( "~", ".inc" ) - +$HTTP["url"] =~ "\.pdf$" { + server.range-requests = "disable" +} ######### Options that are good to be but not neccesary to be changed ####### @@ -228,13 +232,13 @@ url.access-deny = ( "~", ".inc" ) # ( # "method" => "digest", # "realm" => "download archiv", -# "require" => "group=www|user=jan|host=192.168.2.10" +# "require" => "user=jan" # ), # "/server-info" => # ( # "method" => "digest", # "realm" => "download archiv", -# "require" => "group=www|user=jan|host=192.168.2.10" +# "require" => "valid-user" # ) # ) -- cgit v1.2.1