mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
cloudpanel Login page answers on port 443 #186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bdfcommunication on 9/17/2024
CloudPanel version(s) affected
v2.4.2
Description
The panel by default answers on port 8443, so that you can easily whitelist this port on firewall. Well if you add the Custom Domain to the Sites, generate an ssl for it and thereafter you delete the site, navigating to https://customdomain.com you will see the panel login. The only way to manage this not to happend after is to recreate the customdomain.com on your websites, and edit index.php printing 404 Error. I think this is a bug and is not intended to be this way.
How to reproduce
Lets presume that you have a static office ip and that at a firewall level you have whitelisted the port 8443 only to this ip and that port 443 is available to the world
1 - go to your hosting provider and create an A record on the DNS table of your domain
A- cloudpanel.yourdomain.com - yourcloudpanelip
2 - go to https:yourcloudpanelip:8443/admin/settings and add the cloudpanel.yourdomain.com as Cloudpanel Custom Domain
3 - Once https://cloudpanel.yourdomain.com:8443 is available to you, login on the pannel and go to Sites. Add cloudpanel.yourdomain.com as a website, then go to manage and generate the SSL by using Lets encrypt or Importing yours.
4 - Once issued, go back to Sites, click manage on cloudpanel.yourdomain.com and go at the end of the page and Delete site.
5 - Try to open https://cloudpanel.yourdomain.com from every browser and you will find yourself on the login page of the pannel
Possible Solution
No response
Additional Context
No response