We use mod_proxy with no problem. Here's our setup: <VirtualHost 128.220.205.53:443>
ServerName jscholarship.library.jhu.edu ServerAlias jhir.library.jhu.edu ir01.mse.jhu.edu jscholarship.jhu.edu ServerAdmin [EMAIL PROTECTED] SSLEngine On SSLCertificateFile conf.d/jscholarship.cert # DSPACE-177 - Redirect users that use http(s)://jscholarship.jhu.edu # to https://jscholarship.library.jhu.edu RewriteEngine On RewriteCond %{HTTP_HOST} jscholarship.jhu.edu RewriteRule /(.*) https://jscholarship.library.jhu.edu/$1 [R] ## Proxy Config ## http://httpd.apache.org/docs/2.2/mod/mod_proxy.html ProxyRequests Off ProxyPreserveHost On # Note that this is not SSL ProxyPass / http://ir01.mse.jhu.edu:8080/ ProxyPassReverse / http://ir01.mse.jhu.edu:8080/ </VirtualHost> We deploy Manakin as a ROOT.war under tomcat, so we don't have to use mod_rewrite to proxy. However, if you do need to use mod_rewrite, it's very easy - just use the [P] flag on your rewrite rules. I stopped using mod_jk a while ago (before Apache 2) because there was some uncertantity about which mod_jk version to use. I've continued to use mod_proxy and haven't looked back. If you want load balancing between apache and tomcat instances, you'll need to use mod_jk or use mod_proxy with Apache 2.2 (which has the BalancerMember directive). Filippos Kolovos-2 wrote: > > - > Good morning. > > I think that you should either use the "mod_proxy_ajp" module (distributed > with Apache 2.2), > or mod_jk module (distributed with Apache 2.0) to forward requests from > Apache to Tomcat. > > I do not think that with the Rewrite Engine you could work out the > configuration correctly. > > With the mod_jk case, you have to load the module mod_jk.so with > > "LoadModule jk_module /path/to/apache/modules/apache/mod_jk.so" in > mod_jk.conf in /etc/httpd/conf.dand then in /etc/httpd/conf/httpd.conf to > use the JkMount directive instead of the RewriteRule and Engine to > forward all jsp and servlet requests to the proper ajp worker. For example > the following directives send all requests ending in .jsp or beginning > with > /servlet to the ajp13 worker: JkMount /*.jsp ajp13 > JkMount /servlet/* ajp13 > On the other hand, if you use Apache 2.2 then you possibly have the > mod_proxy_ajp module instead of the mod_jk. Thelatter was replaced in the > newer version of apache. In that case you have to go to the > /etc/httpd/conf.d/proxy_ajp.conf and use ProxyPass directives and/or > <Proxy > *> directives > to allow/deny access to Tomcat serving. You can Google the directives > above > in order to check some examples on how to use them.Normally, mod_proxy_ajp > is included in Apache 2.2, but just to make sure, check out its existence > first before issuing the commands. > Best regards,-FkOn Wed, Jun 4, 2008 at 10:04 PM, > <[EMAIL PROTECTED]> wrote: > > > > Message: 1 > Date: Wed, 04 Jun 2008 16:05:41 +0200 > From: [EMAIL PROTECTED] > Subject: [Dspace-tech] Using apache mod_proxy to forward dspace/tomcat > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > > Normally, forwarding tomcat apps with mod_proxy is easy. > > For example > > <VirtualHost *:80> > > ServerAdmin [EMAIL PROTECTED] > > ServerName coin.security-review.net:80 > > ProxyRequests Off > > ProxyPreserveHost On > > RewriteEngine On > > RewriteRule ^/(.*) http://localhost:8080/xmlui/$1 [P,L] > > ProxyPassReverse / http://localhost:8080/xmlui/ > > CustomLog /usr/local/apache2/logs/coin-access_log combined > > </VirtualHost> > > By this does not work with dspace, server cannot find xmlui directory > when accessing a page. > > Does someone have a solution? > > > > > -- > Filippos Kolovos > Software Systems Analyst & Engineer > M.Sc. (Eng.) in Data Communications > > Automation & Networking Department > University of Macedonia Library > Egnatia 156, P.O.Box 1591 > 540 06 Thessaloniki, Greece > > E-Mail: [EMAIL PROTECTED], > [EMAIL PROTECTED] > Profile: http://www.linkedin.com/in/filipposkolovos > Phone: +30-2310-891-826 > ----------------------------------------------------------------------- > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > -- View this message in context: http://www.nabble.com/Using-apache-mod_proxy-to-forward-dspace-tomcat-tp17647595p17668874.html Sent from the DSpace - Tech mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

