OpenLiteSpeed
Mike Kasprzak edited this page Jun 10, 2016
·
4 revisions
OpenLiteSpeed is a web server from LiteSpeed Technologies. As the name suggests, it's the Open Source version of their product LiteSpeed.
The live servers run OpenLiteSpeed, but for simplicity the toolchain uses Apache.
- Faster with a lower memory footprint than Apache out-of-the-box
- Support for modern and next generation web technologies like HTTP/2 out-of-the-box
- Apache compatible rewrite rules
- Web UI for administration
The default error pages brag that the server runs OpenLiteSpeed. It's not that I have a problem mentioning this, but the landing page itself is overly wordy and potentially confusing to users.
Here's a patch that removed the blurb from error pages.
diff -rupN openlitespeed-1.4.13-original/src/http/httpstatuscode.cpp openlitespeed-1.4.13-patched/src/http/httpstatuscode.cpp
--- openlitespeed-1.4.13-original/src/http/httpstatuscode.cpp 2015-10-27 17:22:56.000000000 -0400
+++ openlitespeed-1.4.13-patched/src/http/httpstatuscode.cpp 2015-11-08 02:19:25.782408076 -0500
@@ -167,7 +167,7 @@ StatusCode::StatusCode(int code, const c
pStatus, pStatus[1], pStatus[2], pStatus[3], &pStatus[5],
message ? message : "");
//p += ls_snprintf( p, pEnd - p, "%s", message );
- if ((code >= SC_403) || (code <= SC_404))
+/* if ((code >= SC_403) || (code <= SC_404))
p += snprintf(p, pEnd - p,
"<div style=\"color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;"
"position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;"
@@ -176,7 +176,7 @@ StatusCode::StatusCode(int code, const c
"<p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting"
" company and, as such, has no control over content found on this site.</p></div>"
);
-
+*/
p += ls_snprintf(p, pEnd - p, "</body></html>\n");
m_iBodySize = p - achBuf;