Error - Missing Content-Type Header
Apologies for my ignorance.... I have been using webmin for nearly 15 years. I have been using it on my current server for 3 years. My last logon was Dec 2 according to the logs and all was fine. I tried to logon today and get the error above. Can anyone give me any guidance on how to correct/fix ? Thank you for your help!
Is that the whole error message? Also, does anything get logged to /var/webmin/miniserv.error ?
yes, that is entire message
miniserv.error log
[21/Jan/2021:17:13:32 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
[21/Jan/2021:19:07:45 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[21/Jan/2021:19:08:15 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
[22/Jan/2021:09:51:52 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
[22/Jan/2021:10:35:45 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:10:35:52 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
[22/Jan/2021:13:13:21 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
[22/Jan/2021:13:18:27 -0600] miniserv.pl started
[22/Jan/2021:13:18:27 -0600] IPv6 support enabled
[22/Jan/2021:13:18:27 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:13:18:27 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:13:18:27 -0600] PAM authentication enabled
[22/Jan/2021:13:18:42 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:42 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:46 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:47 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:48 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:48 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:18:53 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:13:18:55 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:13:18:56 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
[22/Jan/2021:13:20:25 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:25 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:27 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:27 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:29 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:29 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:41 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:41 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:43 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:20:43 -0600] [172.31.255.1] Bad Request
[22/Jan/2021:13:21:25 -0600] miniserv.pl started
[22/Jan/2021:13:21:25 -0600] IPv6 support enabled
[22/Jan/2021:13:21:25 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:13:21:25 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:13:21:25 -0600] PAM authentication enabled
[22/Jan/2021:13:21:29 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
[22/Jan/2021:13:25:21 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
sh: megacli: command not found
[22/Jan/2021:14:24:28 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
[22/Jan/2021:14:28:45 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:29:25 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
[22/Jan/2021:14:30:14 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:33:48 -0600] miniserv.pl started
[22/Jan/2021:14:33:48 -0600] IPv6 support enabled
[22/Jan/2021:14:33:48 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:14:33:48 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:14:33:48 -0600] PAM authentication enabled
[22/Jan/2021:14:33:54 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:33:56 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:33:57 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:33:58 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:34:10 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:34:54 -0600] miniserv.pl started
[22/Jan/2021:14:34:54 -0600] IPv6 support enabled
[22/Jan/2021:14:34:54 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:14:34:54 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:14:34:54 -0600] PAM authentication enabled
sh: megacli: command not found
[22/Jan/2021:14:34:59 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:35:00 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:35:01 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:35:01 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:35:02 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:35:46 -0600] miniserv.pl started
[22/Jan/2021:14:35:46 -0600] IPv6 support enabled
[22/Jan/2021:14:35:46 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:14:35:46 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:14:35:46 -0600] PAM authentication enabled
[22/Jan/2021:14:35:53 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:36:08 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:36:27 -0600] miniserv.pl started
[22/Jan/2021:14:36:27 -0600] IPv6 support enabled
[22/Jan/2021:14:36:27 -0600] Using MD5 module Digest::MD5
[22/Jan/2021:14:36:27 -0600] Using SHA512 module Crypt::SHA
[22/Jan/2021:14:36:27 -0600] PAM authentication enabled
[22/Jan/2021:14:36:39 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:38:05 -0600] Reloading configuration
[22/Jan/2021:14:38:22 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:38:49 -0600] Reloading configuration
[22/Jan/2021:14:39:02 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
[22/Jan/2021:14:39:25 -0600] [172.31.255.1] /session_login.cgi : Missing Content-Type Header
sh: megacli: command not found
Which Webmin version are you running there?
How can I find version from the command line?
here is the config
passwd_cindex=2
passwd_uindex=0
deftab=webmin
real_os_type=CentOS Linux
real_os_version=7.8.2003
gotoone=0
webprefix=
nowebminup=
os_version=15.8
passwd_file=/etc/shadow
tempdelete_days=7
by_view=0
log=1
os_type=redhat-linux
md5pass=1
theme=authentic-theme
no_frame_options=1
nohostname=0
notabs=0
ld_env=LD_LIBRARY_PATH
lang=en.UTF-8
gotomodule=
find_pid_command=ps auwwwx | grep NAME | grep -v grep | awk '{ print $2 }'
path=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
passwd_mindex=4
passwd_pindex=1
referers_none=1
product=webmin
nomoduleup=
here you go...
[root@s568883 ~]# yum install webmin
Package webmin-1.970-1.noarch already installed and latest version
Try editing /etc/webmin/config to remove the theme= line, and /etc/webmin/miniserv.conf to remove the preroot= line . Then run /etc/webmin/restart
This will drop you back into the old old UI, from which you can try re-selecting a different UI theme.
thank you!!!! I am in!
I selected authentic theme and then get same error....so we know it is Authentic Theme error I guess
I deleted authentic theme in Webmin Configuration downloaded new copy uploaded installed and changed to it it is now running correctly... thank you!
arggggggg Authentic wanted me to update clicked it updated and now trashed..
clearly something in update from Authentic is breaking my system...
I'll ask the theme developer to take a look ..
This will be no longer an issue on the next Webmin release.
Hi Ilia
FYI, I just updated to 1.972 today. after the update : "Error 500 — Missing Content-Type Header" was still present on centos 7.9.2009.
tried to restart webmin =>ko
tried to reinstall authentic-theme 19.72 => ko
tried the new theme 19.73-RC1 => ko
I had to revert to theme 19.62; connection and everything seems now working as usual (/usr/libexec/webmin/authentic-theme/theme-update.sh -release:19.62)
Can you please email me
/etc/webmin/configand/etc/webmin/miniserv.conffile?sourceforge аt rostovtsev.io
Last edit: Ilia 2021-03-03
..and can you also provide the full error message output?
.. just to be sure - restarting Webmin with
/etc/webmin/restartdoesn't help?Files sent in // to your email. thanks again to your help
yes, restart doesn't fix anything, but reverting to previous theme 19.62 let me the availability to use all features.
I had this issue to all webpage i try on https://hostname:10000
ERROR — MISSING CONTENT-TYPE HEADER
<-html>
<-head><-title>500 — Missing Content-Type Header<-/title><-/head>
<-body style="font-family:Lucida Console,Courier,monospace;font-size:12.5px;"><-h2 style="font-family:Lucida Console,Courier,monospace;color:#f12b2b;font-size:14px;padding:5px 2.5px 0;transform:scale(1,1.5);text-transform:uppercase;white-space:pre-wrap;font-weight:500;">Error — Missing Content-Type Header<-/h2>
<-/body><-/html>
/var/webmin/miniserv.error:
[03/Mar/2021:23:42:04 +0100] miniserv.pl started
[03/Mar/2021:23:42:04 +0100] IPv6 support enabled
[03/Mar/2021:23:42:04 +0100] Using MD5 module Digest::MD5
[03/Mar/2021:23:42:04 +0100] Using SHA512 module Crypt::SHA
[03/Mar/2021:23:42:04 +0100] PAM authentication enabled
[03/Mar/2021:23:42:04 +0100] UTMP logging enabled
[03/Mar/2021:23:54:10 +0100] miniserv.pl started
[03/Mar/2021:23:54:10 +0100] IPv6 support enabled
[03/Mar/2021:23:54:10 +0100] Using MD5 module Digest::MD5
[03/Mar/2021:23:54:10 +0100] Using SHA512 module Crypt::SHA
[03/Mar/2021:23:54:10 +0100] PAM authentication enabled
[03/Mar/2021:23:54:10 +0100] UTMP logging enabled
[03/Mar/2021:23:54:19 +0100] [IPaddr] / : Missing Content-Type Header
[03/Mar/2021:23:55:53 +0100] [IPaddr] /stats.cgi : Missing Content-Type Header
...
[03/Mar/2021:23:56:05 +0100] [IPaddr] /index.cgi/ : Missing Content-Type Header
...
Last edit: jerome 2021-03-03
I see now why this is happening. Do you have
forkcgisset to1inminiserv.conf? If so, why?well done! thanks you so much.
just remove this line forkcgis=1 on miniserv.conf
reupdate the last version of the theme available
restart service webmin = OK!
.
I do not remember why that line was added, if I done that in the past to fix something or if it was something previously added from a previous release.
thanks!
It will work either way.