Forum Moderators: phranque
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:)
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