How to create subdomain to host media on the same server?

I have and, both of them share the same server

I want to import products into, but all images will be imported into

Is there a way to do this? I want to try creating my own like a CDN from a subdomain on the same server use CyberPanel.

i think for this you have to add the images menuly you have to give images links to the main site