Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How To Access Cyberpanel Without Using Port 8090

March 27, 2024
in Blog, CyberPanel, Linux
0
ADVERTISEMENT

Table of Contents

If you are using CyberPanel, you may have noticed that the administration interface is accessible via port 8090 by default. In some cases, it may be desirable to hide or remove port 8090 for security reasons or to simplify access to your control panel. 

In this article we will see how to remove or access CyberPanel without using port 8090.

WjakoY8Dg1s4TBO5CcPMvzszRmLKh4DKav97OqjBOncHkUaHfoq5vsVJXxPe

Create a website for the hostname

1. First of all, you need to decide which domain you want to access CyberPanel on without adding the port.

In this example we will use https://admin.ezbpm.me

oRjjxUxCciFvWf5ktl67m95jD1f8fq5oRUguvayV1fGKgJwjKe0NLTw6AwK6

2. Make sure that the A record of this domain already points to your server.

08uww5akSLCifQRRjenieETT0MpSbp2HJO3Xi87VxDOvWaKlsUV2TtbVKZUI

3. It is now necessary to issue an SSL certificate for the previously chosen domain. In our example, it is https://admin.ezbpm.me. You can do it from Dashboard | SSL | Hostname SSL.

aMYevazSLTdjE3QyOdlLcbdN1eJgu1t2FHK7LWFFTRFdj2IoddA6YjVtnNYd

Configure CyberPanel without port 8090

1. Make sure you have opened an SSH connection to your server with root privilege.

bonben@ub20:~$ sudo -s
[sudo] password for bonben: ********
root@ub20:/home/bonben# whoami
root
root@ub20:/home/bonben#

2. We will use the following command to open then edit the OLS configuration file.

nano /usr/local/lsws/conf/httpd_config.conf

3. Paste the following lines and don’t forget change the address of your domain name.

extprocessor cyberpanel {
  type                    proxy
  address                 https://admin.ezbpm.me:8090
  maxConns                100
  pcKeepAliveTimeout      60
  initTimeout             60
  retryTimeout            0
  respBuffer              0
}
Note Note: Remember to change the URL in the following code snippet to match your chosen CyberPanel administrator domain. However, keep the port 8090 in this extract!
ZHCKHMxBWWWtD4wvUiYluOlTbSnVk3HQUGN68CRhfS2MHWEIFyjpYphjE87O

4. In your CyberPanel user interface, go to Websites and then List of Websites. To the right of the panel with your domain, click on Manage.

XFBa1rsVBgneG6NzZ5hrKIqq6RNKWvum49qANAHasfxYxgxPdfuiGeMeu78A

5. At the bottom of the list, you will find an option “Rewrite rules”, click on it.

3R5IYoASTRc7V4KVChnYLVs0KtAWBj6rEvi4NidGsJqOSmo9ujoh50YqpkhQ

6. You can now use rewrite rules to direct traffic to port 8090. You can use these rules:

### Rewrite Rules Added by CyberPanel Rewrite Rule Generator

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^(.*)$ HTTP://cyberpanel/$1 [P]

### End CyberPanel Generated Rules.
kMFfd9MOUDpniRbzzK4z1gQiSRy2zZNfr9LJT0cs1TuKNFZvXx2PfubaStOO

To better understand the rewrite rules, consult the CyberPanel documentation.

7. Restart OLS service from Dashboard | Status | Service Status.

rFKdiAvhpf1Im4O0ByADQ827TE5xn6sItRIbNyNrIxSlUlco3PXmNFxGrxDc

Congratulations! You should now be able to visit CyberPanel with the domain you created in Step 1.

Block CyberPanel port 8090 (Optional)

Since you no longer use port 8090, you can block it for security reasons. To do this, on the Dashboard | Security | Firewall. Then you can block the port by deleting them.

OEgxGBYscH9KuNNJIZNXitgbLyBZNmXIV8vMW66zfAaijsDOkqxZqCyifnwK
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to Enable SNMP in Ubuntu Linux

Next Post

How to Restart OpenLiteSpeed in CyberPanel

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory