I would like
On cpanel hosting these redirects are set up automatically for things like mail.mydomain.com, cpanel.mydomain.com, etc. I gather that's being achieved in the vhost config files (as opposed to using .htaccess rewrite rules).
Is there a way to achieve this on OpenLightSpeed?
I've asked a similar question on CyberPanel forums, as ideally I'd like to have a way to automate this (and I am using CyberPanel), such that each new website I create has the necessary config rules pulled in (perhaps from a vhost template?). But there's been no reply on that post, so for now I am just keen to know how I can do this manually from an OpenLiteSpeed angle, so that these sub-domains redirect to a specific port I require.
Thanks,
Jonathan
https://cpanel.mydomain.com
to redirect to https://mydomain.com:7080
(for example). On cpanel hosting these redirects are set up automatically for things like mail.mydomain.com, cpanel.mydomain.com, etc. I gather that's being achieved in the vhost config files (as opposed to using .htaccess rewrite rules).
Is there a way to achieve this on OpenLightSpeed?
I've asked a similar question on CyberPanel forums, as ideally I'd like to have a way to automate this (and I am using CyberPanel), such that each new website I create has the necessary config rules pulled in (perhaps from a vhost template?). But there's been no reply on that post, so for now I am just keen to know how I can do this manually from an OpenLiteSpeed angle, so that these sub-domains redirect to a specific port I require.
Thanks,
Jonathan