I am using mod_jk, jk2 was to complacatted  to configue
here is my conf file, roller version is 3.1
<VirtualHost www.xxx.xxx>
    JkAutoAlias /var/www/tomcat/webapps
    JkMount / ajp13

    JkMount /roller-ui ajp13
    JkMount /roller-ui/* ajp13
    JkMount /j_security_check ajp13
    JkMount /skipjack ajp13
    JkMount /skipjack/* ajp13
    JkMount /images ajp13
    JkMount /images/* ajp13
    JkMount /theme ajp13
    JkMount /theme/* ajp13
    JkMount /themes ajp13
    JkMount /themes/* ajp13
    JkMount /robots.txt ajp13
    JkMount /CommentAuthenticatorServlet ajp13

    JkMount /servlets-examples ajp13
    JkMount /servlets-examples/* ajp13

    JkMount /jsp-examples ajp13
    JkMount /jsp-examples/* ajp13


    JkMount /tomcat-docs ajp13
    JkMount /tomcat-docs/* ajp13

</VirtualHost>

my httpd.conf was modified with the following
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel debug

my workers.properties file is
# workers.properties - ap13
#
# List workers
#worker.list=ajp13
#
workers.tomcat_home=/var/www/tomcat
workers.java_home=/usr/java/jre1.5.0_05/
ps=/

worker.list=ajp13
worker.maintain=30
# Define wrkr
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.type=ajp13
#worker.ajp13.lbfactor=1
worker.ajp13.connection_pool_timeout=30
worker.ajp13.socket_timeout=300
worker.ajp13.socket_keepalive=1


hope this helps,


On Dec 16, 2007 2:57 PM, ries van Twisk <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I have roller on a separate domain and just proxy the whole thing.
>
> I am not sure what your setup is but here is mine:
>
> My problem: I want to use roller on port 80 with it's own domain...
> but already have apache sitting on port 80.
> Solution is to use apache as a proxy, here is what I do in apache:
>
> <VirtualHost 212.79.238.152:80>
>      ServerAdmin [EMAIL PROTECTED]
>      ServerName www.vantwisk.nl
>      ServerAlias vantwisk.nl
>      ErrorLog /var/log/apache2/vantwisk_nl-error.log
>      CustomLog /var/log/apache2/vantwisk_nl.log common
>      ProxyPass / http://www.vantwisk.nl:8080/
>      ProxyPassReverse / http://www.vantwisk.nl:8080/
>      <Location />
>        Order deny,allow
>        Allow from all
>     </Location>
> </VirtualHost>
>
> I create a hosts file in /etc/hosts with the following content:
>
> 127.0.0.1       vantwisk.nl www.vantwisk.nl
>
> And last but not least a small entry in tomcat6
>
> In server.xml I have this entry:
>      <Connector port="8080" protocol="HTTP/1.1"
>                 connectionTimeout="20000"
>                 redirectPort="8443"
>                 proxyPort="80"
>                 />
>
> I did put roller in my ROOT directory...
>
> I have read about mod_jk but my limited knowledge about this led me to
> install
> to the above situation and that seems to work just fine so far.
>
> Properly you can do the same with the above if a whole directory needs
> to be proxyied-...
>
> Ries
>
>
>
> On Dec 14, 2007, at 7:27 PM, Eichberger, German wrote:
>
> > Ok, I tried to figure some of the rules out by myself (and I feel the
> > jk2.conf provided is incomplete, too)
> >
> > So here are the rewrite rules I am using:
> > RewriteEngine on
> > #RewriteLog /tmp/rw.log
> > #RewriteLogLevel 3
> > #
> > RewriteRule /(.+\.(jsp|m|vm|cmx|rss|action|do|rol))
> > balancer://ajp-balancer/$1 [P,L]
> > RewriteRule
> > ^/(.+)/(page|comments|preview|trackback|ExportServlet|auth|rss|
> > entry)/(.
> > *) balancer://ajp-balancer/$1/$2/$3
> > [P,L]
> > RewriteRule ^/(([^/\.]+$)|([^/\.]+/$)) balancer://ajp-balancer/$1
> > [P,L]
> > RewriteRule /j_acegi_security_check
> > balancer://ajp-balancer/j_acegi_security_check [P]
> > RewriteRule /roller_j_security_check
> > balancer://ajp-balancer/roller_j_security_check [P]
> > RewriteRule /CommentAuthenticatorServlet
> > balancer://ajp-balancer/CommentAuthenticatorServlet [P]
> >
> > And every time I am firing the system up again I discover another
> > functionality which needs the rewrite rules adjusted. I was
> > wondering if
> > anybody else has apache running in front of his tomcat and can
> > enlighten
> > me with his rewrite rules...
> >
> > Thanks,
> > German
> >
> > -----Original Message-----
> > From: Eichberger, German [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 12, 2007 11:38 AM
> > To: [EMAIL PROTECTED]
> > Subject: what kind of urls need to be handled by tomcat
> >
> > Hi,
> >
> >
> >
> > we have some apache httpd sitting in front of our tomcat running
> > roller
> > (I am still trying to set everything up:-)) We are using mod_rewrite
> > to
> > decide which URL's should be served by tomcat and which by apache.
> > Right
> > now we are forwarding everything which ends with .rol, .vm, .jsp, and
> > .action to the tomcat. But the system doesn't work. I was wondering if
> > somebody else had some experience with a similar set up and can share
> > his insights what to forward to tomcat...
> >
> >
> >
> > Thanks,
> >
> > German
> >
> >
> >
> > ---
> >
> > German Eichberger - [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>  -858.577.3937 (w) - xgerman2 (Aim)
> >
> >
> >
>
> --
> Ries van Twisk
> Freelance TYPO3 Developer
> email: [EMAIL PROTECTED]
> web:   http://www.rvantwisk.nl/
> skype: callto://r.vantwisk
> Phone: + 1 810-476-4193
>
>
>
>
>
>
>
>



-- 
Programming is art

Reply via email to