# ls -1 /usr/local/directadmin/data/templates/openlitespeed*.conf
/usr/local/directadmin/data/templates/openlitespeed_ips.conf
/usr/local/directadmin/data/templates/openlitespeed_listener.conf
/usr/local/directadmin/data/templates/openlitespeed_vhost.conf
# ls -la /usr/local/lsws/ssl.crt/server.crt.combined
-rw------- 1 root root 3936 Apr 25 12:26 /usr/local/lsws/ssl.crt/server.crt.combined
# grep certFile *
httpd-listeners.conf: certFile /usr/local/lsws/ssl.crt/server.crt
httpd-vhosts.conf: certFile /usr/local/lsws/ssl.crt/server.crt
ips.conf: [B]certFile /usr/local/lsws/ssl.crt/server.crt.combined[/B]
# grep certFile /usr/local/directadmin/data/users/*/openlitespeed.conf | grep combined -c
[B]0[/B]
- letsencrypt.sh does not install a cert/key to Openlitespeed
- ssl cert/key pair for localhost is installed after installation, even if a valid ssl key/cert pair exist.
- The file httpd-listeners.conf is redundant here?
- The CACertFile directive is missing in ips.conf, listeners.conf, httpd-vhosts.conf, users` openlitespeed.conf ? The certFile points to a single cert file.
Code:# ls -la /usr/local/lsws/ssl.crt/server.crt.combined -rw------- 1 root root 3936 Apr 25 12:26 /usr/local/lsws/ssl.crt/server.crt.combined # grep certFile * httpd-listeners.conf: certFile /usr/local/lsws/ssl.crt/server.crt httpd-vhosts.conf: certFile /usr/local/lsws/ssl.crt/server.crt ips.conf: [B]certFile /usr/local/lsws/ssl.crt/server.crt.combined[/B] # grep certFile /usr/local/directadmin/data/users/*/openlitespeed.conf | grep combined -c [B]0[/B]
cd /usr/local/lsws/admin/fcgi-bin
ln -s admin_php5 admin_php
mkdir -p /usr/local/lsws/logs
# netstat -ntpl | grep 7080 -c
0
# tail /usr/local/lsws/logs/lsrestart.log
Fri Apr 26 00:45:57 +07 2019
start, LSWS running: 0
Fri Apr 26 10:10:50 +07 2019
stop, LSWS running: 0
Fri Apr 26 10:10:51 +07 2019
start, LSWS running: 0
Fri Apr 26 10:11:01 +07 2019
restart, LSWS running: 1
Fri Apr 26 10:11:02 +07 2019
start, LSWS running: 0
# cat /usr/local/directadmin/data/users/admin/openlitespeed.conf
... skipped ...
vhssl {
keyFile /etc/httpd/conf/ssl.key/server.key
certFile [B]/etc/httpd/conf/ssl.crt/server.crt[/B]
certChain 1
sslProtocol 30
}
# include aliases
include /usr/local/lsws/conf/httpd-alias.conf
}
OLS supports mod_rewrites from .htaccess file with some restrictions...
mod_rewrite rules from .htaccess are loaded at start time.
Code:# cat /usr/local/directadmin/data/users/admin/openlitespeed.conf ... skipped ... vhssl { keyFile /etc/httpd/conf/ssl.key/server.key certFile [B]/etc/httpd/conf/ssl.crt/server.crt[/B] certChain 1 sslProtocol 30 } # include aliases include /usr/local/lsws/conf/httpd-alias.conf }
2019-05-06 19:11:02.548722 [ERROR] [(null)] rewrite: invalid rewrite condition while parsing: RewriteCond %{HTTP_HOST} ! ^example.net [NC]
2019-05-06 19:11:02.553827 [ERROR] [(null)] rewrite: invalid rewrite condition while parsing: RewriteCond %{HTTP_HOST} ! ^example.net [NC]