Move mimetype assignment into lighttpd.conf
Let's hope for the best...
This commit is contained in:
parent
1422d5fd57
commit
2076be498c
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Hard requirement for lighttpd
|
||||
printf "Content-Type: text/plain\n\n"
|
||||
|
||||
# Initialize basic variables
|
||||
. /etc/konata.conf
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ server.modules = (
|
|||
"mod_accesslog"
|
||||
)
|
||||
|
||||
include "mime-types.conf"
|
||||
include "mod_cgi.conf"
|
||||
|
||||
server.username = "lighttpd"
|
||||
|
@ -24,3 +23,4 @@ server.document-root = var.basedir
|
|||
errorlog.filename = var.logdir + "/error.log"
|
||||
accesslog.filename = var.logdir + "/access.log"
|
||||
cgi.assign = ( ".sh" => "/bin/bash" )
|
||||
mimetype.assign = ( ".sh" => "text/plain" )
|
||||
|
|
Loading…
Reference in New Issue