Fixing CyberPanel ssl erro issues with Cloudflare: Easy steps
In this quick guide, I’ll walk you through securing your CyberPanel with Cloudflare, ensuring a safe and encrypted connection. Let’s dive in!
Step 1: Adding Your Website
Start by adding your website or subdomain to CyberPanel. For instance, if your website is example.com you can use subdomain or your panel like “panel.smartzy.org,” add it as a website in CyberPanel.
Step 2: Cloudflare Setup
Next, head over to Cloudflare and point your subdomain to your hosting IP by adding an A record for “panel.smartzy.org.”
Step 3: SSL for Your Website
Go back to CyberPanel and install HostName SSL for the website you want to visit Cyberpanel with (e.g., panel.smartzy.org). Wait for the process to finish.
Step 4: Changing Server Port
In CyberPanel, navigate to “Server Status” and click on “Change Port.” Switch your server port to 8443. Wait for the process to complete.
Step 5: Accessing Your Secured CyberPanel
Visit “panel.smartzy:org:8443” in your web browser, and voilà ! You now have a secure CyberPanel installation on your preferred URL.
Also See: How to get cheap WordPress Themes and Plugins
Bonus: Portless Access (Advanced)
If you’re up for a more technical challenge, read on. Achieving portless access requires additional steps.
Lets setup Cyberpanel with any port at all (i.e No 8090 or 8443) If you are good with SSH Terminal open command line and navigate to /usr/local/lsws/conf/httpd_config.conf and add the following code, be sure to change the domain to yours and your port to the current one on your cyberpanel.
extprocessor cyberpanel {
type proxy
address https://panel.smartzy.org:8443
maxConns 100
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
Go to Cyberpanel Dashboard simply navigate to Websites >>> List Websites >>> Select your host domain and click on Manage, then locate and click on Rewrite Rules once it opens, add the following code:
REWRITERULE ^(.*)$ HTTP://cyberpanel/$1 [P]
Save it and visit your domain or subdomain with any paid (E.g panel.smartzy.org) I hope you enjoyed getting it done. if you need help dont hesitate to leave a comment and I will be to assist you free of charge.