Changing the image directory to outside the root of the site

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Rokskul
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jul 11, 2009 12:24 am

Changing the image directory to outside the root of the site

Postby Rokskul » 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.

User avatar
devilboy_1989
Joomla! Explorer
Joomla! Explorer
Posts: 350
Joined: Fri Oct 03, 2008 8:22 pm
Location: In Front of My Computer
Contact:

Re: Changing the image directory to outside the root of the site

Postby devilboy_1989 » Sat Jul 11, 2009 6:45 am

I'm not sure but in Global Configuration there is an options for chaning the Images Path..

Global Configuration - Server - scorll down to the Media Settings...
Default is images/stories here put your path e.g. img.mysite.com

I Hope This Helps...
If Its works don't forget to post the reply...

Thank You
Devil Boy
“Speak of The Devil and I Appears”

My Blog - http://www.rajputbrotherhood.com
Joomla - The Mighty CMS.

Rokskul
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jul 11, 2009 12:24 am

Re: Changing the image directory to outside the root of the site

Postby Rokskul » Sun Jul 12, 2009 3:34 pm

Thanks for the reply. Unfortunately although I can change that path in the configuration it is relative to the site. What happens is if I change the path to img.mysite.com it will create a final path of mysite.com/img.mysite.com.

I am sure that it might seem a bit odd to some people to be changing that path, but I have so many images in the site that for speed and management purposes I want to move all of the images outside of the root of the site so I can manage images independently of the main site files.

User avatar
bobcline
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jul 22, 2009 12:27 pm

Re: Changing the image directory to outside the root of the site

Postby bobcline » Sat Aug 29, 2009 1:43 pm

I am new to Joomla! but have a thoought for you if all other alternatives don't work.

You could (or engage someone who can) write a couple of scripts that would read the images on the external directory and populate the individual directories xxx/images/stories and a second that would extract the images from the xxx/images/stories directories and populate the external directories.

The file names in the external directories could contain the path information from the original location of the images.

This could be set up in a cron file with an automatic execution - much like a backup / restore function.

Let us know if you find a solution.

Bob


Return to “Administration 1.5”

Who is online

Users browsing this forum: No registered users and 5 guests