How to restrict :8090 and :7080 to one domain?

This seems like it should be incredibly easy and obvious but for some reason tonight I just can’t get my head to work it out.

We have a server with multiple domains hosted on it:

domain1.com, domain2.com, etc.

I have created a new website (as ‘website’ not subdomain) at serveradmin.domain1.com and want to use that to access cyberpanel and ls webadmin.

I have issued hostname ssl to serveradmin.domain1.com, opened 7080 on the firewall and all works great.

What I want to do now is to stop access from other domains on the server. These panels should only be accessible from serveradmin.domain1.com but currently domain1.com:8090 and domain2.com:8090 also work (without valid ssl of course).

How can I block them so that :8090 and :7080 only work on the one domain?

I’m also sure I read somewhere that it is possible to make serveradmin.domain1.com go directly to the cyberpanel login page without adding the :8090 on the end, and that would be great also if it’s easily possible.

Would really appreciate any help.