krrish
Note: I am not an AAPanel employee, so I don’t know the specific limitations or settings within it. You can try the steps below first, and if they don’t work as expected, you can always revert all your settings, such as port configurations, back to your original setup.
You may want to consider using a Cloudflare proxy, but you'll need to configure your panel's port to a network port that’s compatible with Cloudflare’s proxy. Here are the details:
https://developers.cloudflare.com/fundamentals/reference/network-ports/
For example, ports compatible with Cloudflare (with caching disabled) include:
2095 for HTTP
2096 for HTTPS
Steps:
- Set Cloudflare to point to your IP with the proxy enabled.
- Change your panel's port to 2095 or 2096. You can try either and see which works best. I recommend setting the port via SSH, for example, using PuTTY. With BT 8, I’ve noticed that changing the port through SSH automatically opens the firewall for that port. (I’m not sure if the panel behaves the same way, but I prefer this approach.)
- Don’t forget to enable SSL on Cloudflare SSL. I suggest starting with the "Flexible" SSL option. Once you can access your panel, you can switch to any SSL setting you prefer.
- Try accessing your panel with or without specifying the port. For example, use panel.example.com:2095 or panel.example.com:2096. If you can't access it this way, try without the port: panel.example.com. I believe Cloudflare can detect the port automatically, but testing both methods won’t hurt (since I don’t use the Cloudflare proxy, I’m not certain – you might know better).
Another Note: You can do anything as long as you know what you are doing. so there's no harm in trying. There are lots of reverse proxy tutorials out there, but again like I said, I'm not an AAPanel Employee. I don't know what settings AAPanel uses, so I'll just give you a rough idea
and maybe AAPanel Staff can tell us what we can do and what we can't do
@aaPanel_Kern @aaPanel_Jose