-
 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.d and then in /etc/httpd/conf/httpd.conf
you have 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. The latter 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-up the directives above in order to check some examples on 
how to use them.
Normally, mod_proxy_ajp is included by default in Apache 2.2, but just to 
make sure, check out its existence
before configuring.

Best regards,

-Fk

On 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
 -----------------------------------------------------------------------


-------------------------------------------------------------------------
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

Reply via email to