CSF UI problems while coming from a proxy (EASY FIX PROPOSAL!)
Posted: 20 Sep 2023, 15:36
Hi there,
when trying to access to UI from an nginx proxy, I have these weird error lines:
That 'print "<!DOCTYPE html>\n";' line should be added just before 'print "<HTML>'...
You are adding that line between HTTP headers, and this way, it will cause errors with strict upper layers...
Just comment that '<!DOCTYPE html>\n' line or place it just after 'print "\r\n";' line... this way it should be perfect!
Regards!!!
PD: congrats for your excellent work and tool.
when trying to access to UI from an nginx proxy, I have these weird error lines:
problem was located in line 9876 of lfd.pl:2023/09/20 15:43:20 [error] 2333492#2333492: *687017 upstream sent invalid header: "<!DOCTYPE\x20..." while reading response header from upstream
Code: Select all
print "HTTP/1.0 200 OK\r\n";
print "<!DOCTYPE html>\n";
print "Content-type: text/html\r\n";
print "\r\n";
print "<HTML>\n<TITLE>ConfigServer Security & Firewall</TITLE>\n<BODY style='font-family:Arial, Helvetica, sans-serif;' onload='document.getElementById(\"user\").focus()'>\n";
You are adding that line between HTTP headers, and this way, it will cause errors with strict upper layers...
Just comment that '<!DOCTYPE html>\n' line or place it just after 'print "\r\n";' line... this way it should be perfect!
Regards!!!
PD: congrats for your excellent work and tool.