Changing the image directory to outside the root of the site
Posted: Sat Jul 11, 2009 12:48 am
I am hoping someone here to can help me with this as I have spent a lot of time searching for an answer.
Here is the scenario. I have a site the is massive in size and loads slowly and is a pain to keep synchronized with the dev server and the repository where it is backed up. I want to break the site up into static content and dynamic content on different URLs. So all images on one sub domain, all javascript on another, etc. This will not only provide the site with loading speed but ease of managing the files.
I have Joomla 5.0.12 installed on a domain
mysite.com
I have an images folder that the template file references on a sub domain
img.mysite.com
In IIS 6 I have created a virtual folder on the main site that points to the sub domain.
mysite.com/images/stories/virtual/ -> img.mysite.com
I have put an image file into the sub domain site and accessed it just fine through the virtual folder using a web browser.
mysite.com/images/stories/virtual/picture.jpg
What I need to do now though is tell Joomla to access either the content on img.mysite.com instead of looking in the default location (images/stories) or to get it to recognize the virtual folder inside of the images/stories directory. When accessing the virtual folder through the media manager it returns no file or folder listings.
Can anyone help me track down where I might be able to tell Joomla to access with the sub domain as my images directory or a way to get it to recognize the virtual folder? Thank you.
Here is the scenario. I have a site the is massive in size and loads slowly and is a pain to keep synchronized with the dev server and the repository where it is backed up. I want to break the site up into static content and dynamic content on different URLs. So all images on one sub domain, all javascript on another, etc. This will not only provide the site with loading speed but ease of managing the files.
I have Joomla 5.0.12 installed on a domain
mysite.com
I have an images folder that the template file references on a sub domain
img.mysite.com
In IIS 6 I have created a virtual folder on the main site that points to the sub domain.
mysite.com/images/stories/virtual/ -> img.mysite.com
I have put an image file into the sub domain site and accessed it just fine through the virtual folder using a web browser.
mysite.com/images/stories/virtual/picture.jpg
What I need to do now though is tell Joomla to access either the content on img.mysite.com instead of looking in the default location (images/stories) or to get it to recognize the virtual folder inside of the images/stories directory. When accessing the virtual folder through the media manager it returns no file or folder listings.
Can anyone help me track down where I might be able to tell Joomla to access with the sub domain as my images directory or a way to get it to recognize the virtual folder? Thank you.