Skip to content

Editions

LiteHTTPD comes in two editions. Both are free and open source.

LiteHTTPD-ThinLiteHTTPD-Full
What it islitehttpd_htaccess.so module onlyModule + Patched OpenLiteSpeed
Install onStock (unmodified) OLSOne RPM from rpms.litehttpd.com
Install time1 minute (copy .so)~1 minute via RPM repo
OLS binaryUnchangedReplaced with patched version (module bundled)
FeatureLiteHTTPD-ThinLiteHTTPD-Full
Header set/unset/append/merge/add/editYesYes
Require all/ip/env, Order/Allow/DenyYesYes
AuthType Basic + AuthUserFileYesYes
FilesMatch, Files, Limit/LimitExceptYesYes
If/ElseIf/Else conditionalsYesYes
Redirect, RedirectMatchYesYes
ErrorDocumentYesYes
ExpiresActive/ExpiresByType/ExpiresDefaultYesYes
AddType/ForceType/AddCharset/AddDefaultCharsetYesYes
SetEnv/SetEnvIf/BrowserMatchYesYes
DirectoryIndexYesYes
LSBruteForceProtectionYesYes
Options -Indexes (module-level)YesYes
RewriteRule executionParsed onlyFull execution
php_value / php_flagParsed onlyPassed to lsphp
Options -Indexes (engine-level 403)Module fallbackNative 403
Apache config auto-convertManualAutomatic at startup

Best for:

  • Adding security headers, ACL, and caching to stock OLS
  • Sites that do not need RewriteRule in .htaccess (WordPress rewrite handled by OLS native RewriteFile)
  • Quick evaluation without rebuilding OLS
  • Docker/container environments using official OLS images
  • Hosting providers who cannot modify the OLS binary

Limitations:

  • RewriteRule [R=301,L] in .htaccess will be parsed but not executed. OLS falls back to native RewriteFile processing, which handles basic WordPress permalinks but not advanced redirect rules.
  • php_value and php_flag are parsed but have no effect on lsphp.

Best for:

  • Full Apache-to-OLS migration with 90%+ compatibility
  • WordPress sites with plugins that write RewriteRule redirects (Redirection, Yoast, Rank Math)
  • Sites using php_value for per-directory PHP configuration
  • Production hosting replacing Apache or LSWS Enterprise

Includes 4 patches applied to OLS source:

  • Patch 0001 (PHPConfig): Enables php_value/php_flag via LSIAPI
  • Patch 0002 (Rewrite): Enables full RewriteRule execution with [R=301,L,QSA,F,G] flags
  • Patch 0003 (readApacheConf): Auto-converts Apache httpd.conf at OLS startup
  • Patch 0004 (autoIndex): Returns 403 for Options -Indexes at engine level
Terminal window
# Copy module to stock OLS
cp litehttpd_htaccess.so /usr/local/lsws/modules/
# Enable module
echo 'module litehttpd_htaccess { ls_enabled 1 }' >> /usr/local/lsws/conf/httpd_config.conf
# Restart
/usr/local/lsws/bin/lswsctrl restart
Terminal window
# Add repo and install (patched OLS + bundled module)
curl -s https://rpms.litehttpd.com/setup.sh | bash
dnf install openlitespeed-litehttpd
systemctl restart lsws

See Building from Source and Patches.