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