[OFBiz] Users - product images directory
David E. Jones
jonesde at ofbiz.org
Wed Apr 5 16:28:29 CDT 2006
Fred,
Yes, I think that is a good idea. I made a change to add that in rev 7208.
-David
Fred Forester wrote:
> It turns out that it is possible to symlink image directories the way I
> want to.
>
> edit
> framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
>
> in
> protected Context createContext(ComponentConfig.WebappInfo appInfo)
> throws ContainerException
>
> add
> context.setDocBase(location);
> context.setAllowLinking(true);
>
>
> symlink away
>
>
> Fred Forester wrote:
>> did that. added a prefix of /images/scprods tail the access log an see....
>>
>> GET /images/scprods/images/calendar1.js (I want this to stay where it
>> supposed to and not prefixed)
>> GET /images/scprods/images/products/thu/LFVV.JPG (This is the ONLY directory
>> I want moved)
>>
>> and using the prefix this way will allow me to "symlink" just the products
>> images directory and leave everything else as is.
>>
>>
>> Andrew Sykes wrote:
>>
>>> Fred, there are 2 options...
>>>
>>> option 1
>>>
>>>
>>>>> Using the config file you can add a subdomain to the images url and
>>>>> therefor serve them from an entirely different server.
>>>>>
>>>>>
>>> option 2
>>>
>>>
>>>>> Using the content application (sorry I said catalog before by mistake),
>>>>> you can configure your website to use content prefixes, this means that
>>>>> all content will be created and referenced in /images/yourprefix. You
>>>>> can then simply create a symlink in /images.
>>>>>
>>>>>
>>> Sounds like you're looking for option2, I suggest you experiment with
>>> this one.
>>>
>>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ofbiz.org
>> http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
More information about the Users
mailing list