Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Apache Alias & Common Image Folders


dead7

Recommended Posts

Posted

Hey everyone I have a small question.

 

I've succesfully found a way to replicate all of my stores from running out of a single managed OSC installation(database).

 

I know there are contribs for it however i had specific needs and i still have the ability say which categories do or don't show up on specific sites.

 

Here is my issue.

 

I have the main site with a product images folder "/pimages/" inside of /store (where OSC runs).

 

This particular directory has over 28,854 images for all of our products. Now i've used the Apache Alias in my httpd.conf and it does work.. kinda.

 

If I have http://foo.bar/ (main site) the images show fine

 

In apache i'll do

 

Alias /store/pimages/ "physical/path/to/the/main/images"

 

If i go to http://foo2.bar/pimages/file.jpg (second satellite site) the Alias in apache is working just great!

 

It seems when product_thumb.php comes into play it will not allow the Alias to follow through. So in the end the alias is working technically on server side but not when the actual thumb is generated by OSC.

 

I have noticed that in /includes/configure.php (store side) i can change the DIR_WS_IMAGES to a full url path ie: http://foo.bar/pimages and the images will show up on my second site.. however VERY slow :(

 

Any help on getting a common image folder working across multiple stores on the same server please let me know.

 

Thank you all for your help in advance.

 

-Dead7

Posted

No one has a large store and uses multiple stores??? I would've thought for sure someone knew how to have product_thumb read common image folders for multiple stores on the same DB...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...