-
1. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
lviz Nov 4, 2004 8:47 AM (in response to beyarecords)hi
have you tried it without Proxy[P]
eg:
RewriteRule (.*)\.xml$ cocoon/mysite/$1.xml
or:
RewriteRule (.*)\.xml$ http://%{SERVER_NAME}/cocoon/mysite/$1.xml
just a shot from the hip :)
cheers
L -
2. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
beyarecords Nov 4, 2004 9:03 AM (in response to beyarecords)Lviz,
tried your recommendation and it works but displays the url as:
1. http://www.mysite.com/login.xml
becomes
http://beyarecords.com/cocoon/mysite//login.xml
But what i want is to hide cocoon/mysite from the user. So if I add [P] it works but the session is not kept from page to page because
1. first page requested /cocoon gets cookie
2. request for another page then looks for cookie at mysite.com and finds nothing because it is at /cocoon.
Any ideas? ;-)
Andrew -
3. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
lviz Nov 4, 2004 12:36 PM (in response to beyarecords)hi andrew
are you serving other things (static html...) from your root
http://www.mysite.com/ ? or just cocoon.
we did some things with mod_proxy... like
#ProxyRequests On
#ProxyPreserveHost On
#ProxyPass /test http://localhost:8080/foobar
#ProxyPassReverse /test http://localhost:8080/foobar
#ProxyPass / http://localhost:8080/bla
#ProxyPassReverse / http://localhost:8080/bla
and...
i just remeber the eg. in tomcat server.xml
cheers
L -
4. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
lviz Nov 4, 2004 12:38 PM (in response to beyarecords)ups...
i just remeber the eg. in tomcat server.xml<Context path="/foobar" docBase="examples" debug="0" reloadable="true">
cheers
L -
5. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
lviz Nov 4, 2004 12:49 PM (in response to beyarecords)hi again
some other :) idea
#log verbose
RewriteLog /var/log/https_rewrite_log
RewriteLogLevel 9
###
RewriteRule (.*)\.xml$ cocoon/mysite/%{REQUEST_URI} [P]
ok thats it for today :)
cheers
L -
6. Re: Apache 2.0.52 - JBoss 4.0 RewriteRule problem
jsnlee Jan 4, 2006 1:48 PM (in response to beyarecords)How do I set up proxypass with JBoss 4.0? can't find httpd.conf to put proxypass.
Thanks