how can i create cdn for wordpress site with subdomain on same server

Hi,

initial i do not want to use third party cdn services.

so how can i create cdn for wordpress site with subdomain on same server,
how to create our own cdn for single or multiple wp site.