Quick Start
WordPress on LiteHTTPD (Full)
Section titled “WordPress on LiteHTTPD (Full)”-
Install LiteHTTPD (RPM repo):
Terminal window curl -s https://rpms.litehttpd.com/setup.sh | bashdnf install openlitespeed-litehttpdsystemctl restart lsws -
Configure your vhost in
vhconf.conf:docRoot /var/www/htmlallowOverride 255autoLoadHtaccess 1 -
Create or verify your WordPress
.htaccess:# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress -
Restart OLS:
Terminal window /usr/local/lsws/bin/lswsctrl restart -
Verify Full features:
Terminal window # RewriteRule [R=301] workscurl -I localhost:8088/test-redirect/old-page# Returns 301 Moved Permanently# Header set workscurl -I localhost:8088/# Shows custom headers# Require all denied workscurl -I localhost:8088/.htaccess# Returns 403 Forbidden
Quick Start with Thin Edition
Section titled “Quick Start with Thin Edition”-
Copy the module to OLS:
Terminal window cp litehttpd_htaccess.so /usr/local/lsws/modules/ -
Enable the module:
Terminal window cat >> /usr/local/lsws/conf/httpd_config.conf <<'CONF'module litehttpd_htaccess {ls_enabled 1}CONF -
Restart and verify:
Terminal window /usr/local/lsws/bin/lswsctrl restart# Header set workscurl -I localhost:8088/# Shows custom headers# Require all denied workscurl -I localhost:8088/.htaccess# Returns 403 Forbidden
RewriteRule [R=301] will return 404 in Thin edition. Use Full for redirect support.