Welcome to WebmasterWorld Guest from 54.166.181.58

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Bunch of sites sharing the same images on a server

apache server with sites sharing images from one directory

     
8:15 pm on Aug 18, 2005 (gmt 0)

Junior Member from US 

10+ Year Member

joined:Feb 13, 2005
posts:101
votes: 0


Greetings one and all.

Suppose I have 100 sites that are on ONE Cobalt RAQ 550 server running Apache and they all sell the same type of products, thus have all the same images. How would I setup sharing properly for each of these?

I have researched this and am thinking that this has something to do with some Rewrite Rules. We have 4 other servers that has this running correctly, but this new server we have recently setup keeps showing "image not found" type errors. So it appears that Apache can't find these images or doesn't know where to look.

Any ideas where I could look on "where" to look for some rewrite functions that I could implement into the new server?

I was kind of thrown into this and don't know where to find previously used rewrite commands that may solve my problem.

Any help would be wonderful, as usual WW rocks:)

8:57 pm on Aug 18, 2005 (gmt 0)

Junior Member from US 

10+ Year Member

joined:Feb 13, 2005
posts:101
votes: 0


Nevermind, figured it out. I edited the "/etc/httpd/conf/httpd.conf" file with some rewrite commands.

All good now:)

8:58 pm on Aug 18, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 18, 2005
posts:6
votes: 0


At a guess...
If you can get some subdomains e.g. [images.domainname.com...]

try this


<VirtualHost *>
ServerName images.domain.com
ServerAlias images.domain2.com images.domain3.com
DocumentRoot /var/www/images/
<Directory "/var/www/images/">
</Directory>
</VirtualHost>

Alternatively within each site


// i haven't tried this out
<VirtualHost *>
ServerName www.domain.com
DocumentRoot /var/www/domain/
<Directory "/var/www/domain/images">
RewriteEngine on
RewriteBase /var/sharedimages/
</Directory>
</VirtualHost>

Or you could create a symbiotic folder within each web directories which all referenc the same folder... e.g
ln -s /var/sharedimages/ /var/www/domain/images/
... i'm unsure thats correct

I hope this has helped

9:20 pm on Aug 18, 2005 (gmt 0)

Junior Member from US 

10+ Year Member

joined:Feb 13, 2005
posts:101
votes: 0


Thanks for the info, but I already figured it out. You must have been creating your post when I posted mine about figuring it out:) I used Alias to setup what folders I wanted directed to others:)

Thanks though:)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members