Categories
Tutorial

How to enable OpenLiteSpeed WebAdmin on CyberPanel

How to enable OpenLiteSpeed WebAdmin on CyberPanel: https://community.cyberpanel.net/t/tutorial-how-to-setup-and-login-to-openlitespeed-webadmin-console/14052

In short, run this command in ssh:
/usr/local/lsws/admin/misc/admpass.sh

If you are using any firewall, allow TCP 7080

Then access the OpenLiteSpeed WebAdmin by https://server.host.name:7080

Categories
Tutorial

CyberPanel: Reverse Proxy to Docker Container

How to Reverse Proxy Traffic to Docker Container on CyberPanel:
https://community.cyberpanel.net/t/reverse-proxy-traffic-to-docker-container-on-cyberpanel/30644

Setup Reverse Proxy:
Open and edit: /usr/local/lsws/conf/httpd_config.conf

extprocessor dockerbackend {
  type                    proxy
  address                 127.0.0.1:8080
  maxConns                100
  pcKeepAliveTimeout      60
  initTimeout             60
  retryTimeout            0
  respBuffer              0
}

Here “dockerbackend” is a referance name to use later and “8080” is the docker container port.

Use Rewrite Rules to Proxy traffic to your Container:
Now create a website and create the following a .htaccess rewrite rule there.
REWRITERULE ^(.*)$ HTTP://dockerbackend/$1 [P]

If you want to force redirect SSL then use the following:

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
REWRITERULE ^(.*)$ http://dockerbackend/$1 [P]
Categories
Tutorial

DKIM Selector for CyberPanel

DKIM Selector for CyberPanel hosted web sites: default._domainkey

Details: https://cyberpanel.net/blog/2018/01/28/how-to-setup-spf-dkim-and-dmarc-inside-cyberpanel-manually/