On 5/31/05, Gregor J. Rothfuss <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > It is good to recommend Jetty, but I believe there are issues solved > > by the Lenya/Tomcat/Apache setup: > > 1. Virtual servers on port 80. > > 2. URL rewriting: mod_proxy and mod_proxy_html (or mod_publisher). > > We want several websites on the same IP Address to display different > > Lenya publications, without "lenya/pubname/live/" in any of the URLs. > This is possible using Jetty: > http://wiki.apache.org/cocoon/SimpleModProxy > http://wiki.apache.org/cocoon/LoadBalancingWithModProxy
If I figure this out, I will add it to my documentation (offline today due to my stupidity, returns tomorrow), and you can steal it. Version 1: SW: Lenya/Cocoon/Tomcat/Apache/mod_jk/mod_proxy/mod_publisher(or mod_proxy_html) ACTION: Apache rewrites URLs based on virtual server names, mod_jk's to Tomcat. Tomcat runs one JVM calling Lenya servlet. ReverseProxy and mod_publisher clean the URLs. PRO: One JVM keeps memory usage low. CON: Slow? Version 2: SW: Lenya/Cocoon/Jetty, Apache/mod_proxy/mod_rewrite ACTION: Apache rewrites URLs and proxies to Jetty/Lenya on different port. PRO: Fast CON: Multiple JVMs use more memory (but it's cheap, right? and only need one for Cocoon/Lenya unless separating multiple publications). QUESTION: Still need mod_publisher to rewrite URLs in page? (Or use XSL? I did not because I want the publications to be portable, so the rewrites should be above the publication XSLTs.) To change: 1. Start Lenya using Jetty. (Write a boot script.) 2. Change Apache's proxying. 3. Fix URLs. (Keep mod_publisher? Or does Lenya/Cocoon handle this too?) solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
