[Tutorial] Setup Cyberpanel Hostname (LItespeed Server) without Port w/ Security Access + Proxy the — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

[Tutorial] Setup Cyberpanel Hostname (LItespeed Server) without Port w/ Security Access + Proxy the

Prerequisite:
*Root Domain is properly configured in QuicCloud DNS Zone

1. Login to CyberPanel
2. Create Website (This website will be the hostname website)
3. SSL > Hostname SSL > Choose Website Name just created from the dropdown > Issue SSL
4. Open SSH > Access as root:
sudo su - > nano /usr/local/lsws/conf/httpd_config.xml > Find the </extProcessorList> > Insert below contents inside <extProcessorList></extProcessorList> > ctrl + x > y > enter
***Change the address with the hostname you just created with the port
***If Port has been changed such as to 2083, enter the changed port
***example: <address>panel.my-domain.com:2083</address>

<extProcessor>
<type>proxy</type>
<name>cyberpanel</name>
<address>panel.my-domain.com:2083</address>
<maxConns>100</maxConns>
<pcKeepAliveTimeout>60</pcKeepAliveTimeout>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<respBuffer>0</respBuffer>
</extProcessor>

5. SSH > Insert below: > ***IF It returns error, you have not inserted the content correct. Any space can cause the error.

/usr/local/lsws/bin/lswsctrl restart

6. Go to CyberPanel > Go to the Hostname Website > Filemanager > create .htaccess if necessary under 'public_html' > Open File > Save Below (CHANGE THE ADDRESS TO Yours including port):

# BEGIN CUSTOM PANEL WITHOUT PORT
RewriteEngine On
RewriteRule ^(.*)$ HTTPS://panel.my-domain.com:2083/$1 [P]
# END CUSTOM PANEL WITHOUT PORT

-----NOTE-----
*You can Stop here if you don't use QuicCloud (You can also use with Cloudflare or with other Reverse Proxy)
*QuicCloud does not allow any port except 80, 443. This process is necessary.
*Cloudflare has a list of port allowed so Cloudflare. This process is optional. Note. 8090 is not allowed by Cloudflare
-----NOTE-----

7. Go to QuicCloud > DNS Zone > Add New Record > Choose Type A > Enter Host as shown below (This is an example. You must match your host to your website just created. Example: panel.my-domain.com; just enter 'panel'

Panel

Enter your server Ip to IPv4 address > Add Record
8. Go to Settings > Domain Alias: > add your alias (this example: panel.my-domain.com)

9. Go to MyDomain > Click your domain > Click CDN > CDN Config > Turn ON Bypass CDN > then Turn OFF Bypass CDN (sometimes QC DNS cannot detect new record without bypassing CDN) > go to DNS Status > Reverify DNS or just wait about 5-10 min > if you see verification status is OK, DONE

[OPTIONAL] Protect the Panel access to your IP address only:
1. Go to Cyberpanel > Open Rewrite Rule or htaccess file just created before > Insert below (Change the IP address to yours. Below is for IP Range):

# BEGIN PROTECT PANEL
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.[0-255]
RewriteRule ^.*$ - [F,L]
# END PROTECT PANEL

Done.
Tagged:
Tagged:
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!