Setting up a subdomain to point an an existing directory


#1

Hi all.

Looking at optimising my site by sending asset requests (images, javascript, css) through a separate subdomain.

I want to make it so that this URL:

img.mydomain.com

mirrors this one:

www.mydomain.com/assets/img/

Is this possible? Can anyone tell me the best method through the DH panel?

thanks.
Matt


#2

Make img.example.com fully hosted and set its Web directory to /home/USER/example.com/assets/img