2 Mar 2009 09:22
Block resources and proxying
Thorsten Scherler <thorsten.scherler.ext <at> juntadeandalucia.es>
2009-03-02 08:22:37 GMT
2009-03-02 08:22:37 GMT
Hi all, we have developed a block to add a new section to our page. http://juntadeandalucia.es/28f2009/index.html This section is independent from the rest of the portal. Since we are using Apache httpd to serve all images, css and js we had to implement a rewrite rule to the work dir of tomcat. Something like: RewriteRule "^/themes/images/28f2009/(.*)\.(gif|jpg|jpeg|ico)$" "$PORTAL/work/blocks/conectorEspeciales/themer/themes/common/images/$1.$2" [L] We cannot do this anymore out of constraints from our production department and are looking into ways to link to the resources in the block lib not pointing into the work dir of tomcat. How do other solve this issue? Is there a a way to tell the block to deploy to another path then the work dir of tomcat? I see different solutions: 1) Link into the jar via httpd directly (not sure whether httpd can do that and whether that brings any drawbacks). 2) Use block deployer from cocoon (if exists) that extract the jar to certain configurable path. 3) Tell production that they need to unzip the block.jar into a certain(Continue reading)
RSS Feed