Move mimetype assignment into lighttpd.conf

Let's hope for the best...
This commit is contained in:
Michael De Roover 2021-05-20 23:38:57 +02:00
parent 1422d5fd57
commit 2076be498c
Signed by: vim
GPG Key ID: 075496E232CE04CB
2 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,5 @@
#!/bin/bash
# Hard requirement for lighttpd
printf "Content-Type: text/plain\n\n"
# Initialize basic variables
. /etc/konata.conf

View File

@ -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" )