----- Forwarded Message ---- From: James Godrej <jamesgodrej@xxxxxxxx> To: users@xxxxxxxxxxxxxxxxx Sent: Tue, 1 February, 2011 7:10:38 PM Subject: Apache as a front end for a Tomcat application Hi, I am trying to use Apache as a front end to an application which runs on a Tomcat server. On lan I am able to correctly see it but from internet things are not working. I tried understanding mod_jk page but I was unable to get to the correct settings. apache vhost can be read here http://pastebin.com/L32D6ii5 following is the application I am trying to get up and running https://confluence.sakaiproject.org/display/DOC/Sakai+2.7 (the binary version of above page). On lan it is accessible http://192.168.1.4:8080/portal perfectly but from internet I am not clear as what is wrong with it. ----- Original Message ---- From: Martin Kuba <makub@xxxxxxxxxxx> To: users@xxxxxxxxxxxxxxxx Sent: Tue, 1 February, 2011 7:42:32 PM Subject: Re: apache as a front end to tomcat instance Dne 1.2.2011 14:41, James Godrej napsal(a): > On lan it is accessible > http://192.168.1.4:8080/portal > perfectly but from internet I am not clear as what is wrong with it. Hi James, it is not an Apache problem, it is a networking problem, you are using a private address, see http://en.wikipedia.org/wiki/Ip_address#IPv4_private_addresses Cheers Martin -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- Original Message ---- From: James Godrej <jamesgodrej@xxxxxxxx> To: users@xxxxxxxxxxxxxxxx Sent: Tue, 1 February, 2011 7:54:51 PM Subject: Re: apache as a front end to tomcat instance I am using private address in all my vhosts and none of them gave me the problem you mentioned. So I do not agree because same url with /portal dropped is still accessible and the root itself is proxied with an Internal IP. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Here is a link which is defining my reverse proxy for sakai https://confluence.sakaiproject.org/display/~steve.swinsburg/Fronting+Tomcat+with+Apache+via+mod_proxy_ajp I am not clear with 2 things 1) Point no 5 2) Point no 7 the confusion is in ajp.conf and what should I use in vhost configuration. I have some doubt with the link point no 5 of URL says to use ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ in my case the server on which Apache is running and the server where Sakai is are physically different machines. So my guess is I should replace localhost by IP of machine where sakai (tomcat) instance is running. Also I am not clear with point no 7 of URL. Which says "Once again, ensure you have the line in httpd.conf that is going to load this ajp.conf file." here is it referring to the Apache vhost file or apache2.conf I am having a Ubuntu server which does not have httpd.conf What I till now have understood the server which faces the internet I should have some thing defined in Apache vhost on that server. Correct me if I am wrong. Here is a configuration if some one wants to have a look http://pastebin.com/L32D6ii5 The above configuration is server on which Apache is running and mod_proxy_ajp of Apache is configured I have created a file named ajp.conf but not clear with the entries. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
![]() |