Hello and thank you for your answers.
I'm sorry for my late answer but I couldn't work on that issue before.

Here is what I've done in the end:
(I used this document in particular:
http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html)

1) Here is what I added to "httpd.conf" (Apache configuration file):

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests Off
ProxyPreserveHost On
 
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass /foo/ http://localhost:8080/foo/
ProxyPassReverse /foo/ http://localhost:8080/foo/
<Location /foo>
    Order allow,deny
    Allow from all
</Location>

2) Here is what I added to "server.xml" (Tomcat configuration file):

<Connector port="8080"
           proxyName="localhost"
           proxyPort="80"/>

3) Then:
- Start Tomcat.
- Start Apache.

4) In a browser which I run from localhost,
if I type in the following URL:

http://localhost/foo/

=> it works.

5) In a browser which I run from another machine on my LAN,
if I type in the following URL:

http://<ip_of_the_apache_and_tomcat_servers>/foo/

=> it works too.

6) I'll see tomorrow if it works from the outside...

For now, it's pretty satisfactory to me.

@Francis
I'm totally sorry but I erased your email by mistake (oups!)

@Casper
Thank you for the links.
I think the Apache reference guides are very hard to use especially because
most of the time no examples are given.
I tried hard to make the "mod_jk" connector but I failed.

My concern now is the following:
I don't know if the solution described above really slows down the WebApp
and if I should try to find another solution...
Indeed, I read that the solution with "mod_jk" would probably be faster...
Notice that I basically have no static Web pages (only JSPs) in my WebApps
so I don't really need Apache to process any static content instead of
Tomcat...

Best regards,
--
Léa
-- 
View this message in context: 
http://old.nabble.com/URL-%22simplification%22-tp32622817p32647863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to