You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Godrej <ja...@yahoo.in> on 2011/02/01 14:41:28 UTC

[users@httpd] apache as a front end to tomcat instance

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

apache vhost can be read here
http://pastebin.com/L32D6ii5

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.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: James Godrej <ja...@yahoo.in>
To: users@httpd.apache.org
Sent: Wed, 2 February, 2011 4:05:40 PM
Subject: Re: [users@httpd] apache as a front end to tomcat instance





----- Original Message ----
From: "bfree@free-man.net" <bf...@free-man.net>
To: users@httpd.apache.org
Sent: Wed, 2 February, 2011 10:36:07 AM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

assuming your apache website can be seen from the internet, meaning you 
have a domain the the dns is directed to apache and you have setup 
apache to deal with the iP of the domain,  say you don't have ajp setup.
I have many instances of tomcat that are reached through apache.
if you find the ajp in the conf, mine is in proxy_ajp.conf
it has
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /java/ ajp://localhost:8009/

Hi can you share proxy_ajp.conf
I noticed I am on a Ubuntu machine where proxy_ajp is enabled but I do not find 
proxy_ajp.conf any where.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: Martin Kuba <ma...@ics.muni.cz>
To: users@httpd.apache.org
Sent: Wed, 2 February, 2011 6:21:50 PM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

>Hi,

>the forward from Apache to Tomcat for /portal using AJP is correct, however
>the second forward using HTTP defined by the directive

>ProxyPass / http://192.168.1.4/


exactly here I am trying to tell that the main website's root / is itself 
running on some maching inside lan and not on the server where Apache is running 
as you expected.


>is most likely wrong, as the main page from /portal links to CSS
>http://research.openitup.in/library/skin/default/portal.css
>which is not a CSS but some HTML page with embedded video.

>Probably you want to replace that with

>ProxyPass / ajp://192.168.1.4:8009/

No the main website research.openitup.in it is itself coming from a proxy 
situation I can not redirect / two times.
The main website itself is running behind a proxy and then this instance also 
can not be configured behind proxy.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by Martin Kuba <ma...@ics.muni.cz>.
Hi,

the forward from Apache to Tomcat for /portal using AJP is correct, however
the second forward using HTTP defined by the directive

ProxyPass / http://192.168.1.4/

is most likely wrong, as the main page from /portal links to CSS
http://research.openitup.in/library/skin/default/portal.css
which is not a CSS but some HTML page with embedded video.

Probably you want to replace that with

ProxyPass / ajp://192.168.1.4:8009/

Cheers

Martin

Dne 2.2.2011 11:35, James Godrej napsal(a):
> Hi please check this site
> http://research.openitup.in/portal
> I am referring to this one.
>
> So I have many apache vhsots running this is the latest configuration of
> research.openitup.in
>
> <VirtualHost *:80>
>
>
> ServerName research.openitup.in
> ProxyRequests off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> ProxyPreserveHost Off
>
> ProxyPass /portal ajp://192.168.1.4:8009/portal
> ProxyPassReverse /portal ajp://192.168.1.4:8009/portal
>
>
> ProxyPass / http://192.168.1.4/
> ProxyPassReverse / http://192.168.1.4/
>
> </VirtualHost>
>
> Let me know what you think can be wrong in it.
> Here is one more forum where I asked this question
> http://www.linuxquestions.org/questions/showthread.php?p=4245596&posted=1#post4245596
>
> may be if some one replies back to me it might help them  to understand my
> problem.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: "bfree@free-man.net" <bf...@free-man.net>
To: users@httpd.apache.org
Sent: Fri, 4 February, 2011 1:33:19 AM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

the servername would be the URL for the domain in the browser.
since the previous emails are not included I don't have those available.


=========================
Hi,
Thanks for your messages (and time( I was able to get my site up and running.
I have created a different servername and it is working now.




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by "bfree@free-man.net" <bf...@free-man.net>.
the servername would be the URL for the domain in the browser.
since the previous emails are not included I don't have those available.


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


James Godrej sent the following on 2/3/2011 11:31 AM:
>
>
>
>
> ----- Original Message ----
> From: "bfree@free-man.net"<bf...@free-man.net>
> To: users@httpd.apache.org
> Sent: Thu, 3 February, 2011 10:10:56 PM
> Subject: Re: [users@httpd] apache as a front end to tomcat instance
>
> the only URL served by the new virtualhost  would be /portal/
> and those will go to tomcat
>
> =========================
> So what I understand is in that case I need to have a different ServerName if I
> configure  different vhost as you say and that
> makes /portal  to go to tomcat.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: "bfree@free-man.net" <bf...@free-man.net>
To: users@httpd.apache.org
Sent: Thu, 3 February, 2011 10:10:56 PM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

the only URL served by the new virtualhost  would be /portal/
and those will go to tomcat

=========================
So what I understand is in that case I need to have a different ServerName if I 
configure  different vhost as you say and that
makes /portal  to go to tomcat.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by "bfree@free-man.net" <bf...@free-man.net>.
the only URL served by the new virtualhost  would be /portal/
and those will go to tomcat

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


James Godrej sent the following on 2/2/2011 8:25 PM:
>
>
>
>
> ----- Original Message ----
>> From: "bfree@free-man.net"<bf...@free-man.net>
>> To: users@httpd.apache.org
>> Sent: Thu, 3 February, 2011 12:14:00 AM
>> Subject: Re: [users@httpd] apache as a front end to tomcat instance
>
>> then create a new virtualhost with the \
>
>> ProxyPass /portal/ ajp://192.168.1.4:8009/
>
> =========================
> Ok but if I create a different vhost for sakai instance then how will I
> differentiate the requests i.e. I have a virtual host for research.openitup.in
>
> and another vhost for sakai also will have same server name
> research.openitup.in.
>
> Suppose I create a new virtual host as you said then what would be the  server
> name because this also has to come from research.openitup.in
>
> so same server name and root / redirected at two places.
>
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
>From: "bfree@free-man.net" <bf...@free-man.net>
>To: users@httpd.apache.org
>Sent: Thu, 3 February, 2011 12:14:00 AM
>Subject: Re: [users@httpd] apache as a front end to tomcat instance

>then create a new virtualhost with the \

>ProxyPass /portal/ ajp://192.168.1.4:8009/

=========================
Ok but if I create a different vhost for sakai instance then how will I 
differentiate the requests i.e. I have a virtual host for research.openitup.in 

and another vhost for sakai also will have same server name 
research.openitup.in.

Suppose I create a new virtual host as you said then what would be the  server 
name because this also has to come from research.openitup.in 

so same server name and root / redirected at two places.




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by "bfree@free-man.net" <bf...@free-man.net>.
then create a new virtualhost with the \

ProxyPass /portal/ ajp://192.168.1.4:8009/

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

James Godrej sent the following on 2/2/2011 9:28 AM:

Chat  Y! messenger: bjfr33man

>
>
>
>
> ----- Original Message ----
> From: "bfree@free-man.net"<bf...@free-man.net>
> To: users@httpd.apache.org
> Sent: Wed, 2 February, 2011 7:44:08 PM
> Subject: Re: [users@httpd] apache as a front end to tomcat instance
>
>> I am using Centos 5 with apache 3.2.2
>> /etc/httpd/config.d/proxy_ajp.conf
>
>> in the virtualhost
>> ProxyPass /portal/ ajp://192.168.1.4:8009/
>
>> remove
>>   ProxyPass / http://192.168.1.4/
>>   ProxyPassReverse / http://192.168.1.4/
>> you need to add
>   >    ServerName research.openitup.in:80
>
>
>
> I can not remove the above two lines as you said because if I remove
>   ProxyPass / http://192.168.1.4/
>    ProxyPassReverse / http://192.168.1.4/
>
> the the site research.openitup.in will not be accessible as this is also coming
> from behind the proxy.
> I had to proxy it because there are a lot of other apache virtual hosts running
> on this site.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: "bfree@free-man.net" <bf...@free-man.net>
To: users@httpd.apache.org
Sent: Wed, 2 February, 2011 7:44:08 PM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

>I am using Centos 5 with apache 3.2.2
>/etc/httpd/config.d/proxy_ajp.conf

>in the virtualhost
>ProxyPass /portal/ ajp://192.168.1.4:8009/

>remove
>  ProxyPass / http://192.168.1.4/
>  ProxyPassReverse / http://192.168.1.4/
>you need to add
 >   ServerName research.openitup.in:80



I can not remove the above two lines as you said because if I remove 
 ProxyPass / http://192.168.1.4/
  ProxyPassReverse / http://192.168.1.4/

the the site research.openitup.in will not be accessible as this is also coming 
from behind the proxy.
I had to proxy it because there are a lot of other apache virtual hosts running 
on this site.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by "bfree@free-man.net" <bf...@free-man.net>.
I am using Centos 5 with apache 3.2.2
/etc/httpd/config.d/proxy_ajp.conf

in the virtualhost
ProxyPass /portal/ ajp://192.168.1.4:8009/

remove
  ProxyPass / http://192.168.1.4/
  ProxyPassReverse / http://192.168.1.4/
you need to add
     ServerName research.openitup.in:80




James Godrej sent the following on 2/2/2011 2:35 AM:


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

>
>
>
>
> ----- Original Message ----
> From: "bfree@free-man.net"<bf...@free-man.net>
> To: users@httpd.apache.org
> Sent: Wed, 2 February, 2011 10:36:07 AM
> Subject: Re: [users@httpd] apache as a front end to tomcat instance
>
> assuming your apache website can be seen from the internet, meaning you
> have a domain the the dns is directed to apache and you have setup
> apache to deal with the iP of the domain,  say you don't have ajp setup.
> I have many instances of tomcat that are reached through apache.
> if you find the ajp in the conf, mine is in proxy_ajp.conf
> it has
> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> ProxyPass /java/ ajp://localhost:8009/
>
>
>
> Hi please check this site
> http://research.openitup.in/portal
> I am referring to this one.
>
> There are number of other things running on it
>
> http://research.openitup.in/atutor
> http://research.openitup.in/dokeos
> http://research.openitup.in/docebolms
> http://research.openitup.in/efront
> http://research.openitup.in/ilias
>
> also same server where I have configured Apache reverse proxy following 2 more
> sites
>
> http://software.openitup.in
> http://software.openitup.in/mingle
> http://social.openitup.in
>
> are also running.
> So I have many apache vhsots running this is the latest configuration of
> research.openitup.in
>
> <VirtualHost *:80>
>
>
> ServerName research.openitup.in
> ProxyRequests off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> ProxyPreserveHost Off
>
> ProxyPass /portal ajp://192.168.1.4:8009/portal
> ProxyPassReverse /portal ajp://192.168.1.4:8009/portal
>
>
> ProxyPass / http://192.168.1.4/
> ProxyPassReverse / http://192.168.1.4/
>
> </VirtualHost>
>
> Let me know what you think can be wrong in it.
> Here is one more forum where I asked this question
> http://www.linuxquestions.org/questions/showthread.php?p=4245596&posted=1#post4245596
>
> may be if some one replies back to me it might help them  to understand my
> problem.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.



----- Original Message ----
From: "bfree@free-man.net" <bf...@free-man.net>
To: users@httpd.apache.org
Sent: Wed, 2 February, 2011 10:36:07 AM
Subject: Re: [users@httpd] apache as a front end to tomcat instance

assuming your apache website can be seen from the internet, meaning you 
have a domain the the dns is directed to apache and you have setup 
apache to deal with the iP of the domain,  say you don't have ajp setup.
I have many instances of tomcat that are reached through apache.
if you find the ajp in the conf, mine is in proxy_ajp.conf
it has
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /java/ ajp://localhost:8009/



Hi please check this site
http://research.openitup.in/portal
I am referring to this one.

There are number of other things running on it 

http://research.openitup.in/atutor
http://research.openitup.in/dokeos
http://research.openitup.in/docebolms
http://research.openitup.in/efront
http://research.openitup.in/ilias

also same server where I have configured Apache reverse proxy following 2 more 
sites

http://software.openitup.in
http://software.openitup.in/mingle
http://social.openitup.in

are also running.
So I have many apache vhsots running this is the latest configuration of 
research.openitup.in

<VirtualHost *:80>


ServerName research.openitup.in
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPreserveHost Off

ProxyPass /portal ajp://192.168.1.4:8009/portal
ProxyPassReverse /portal ajp://192.168.1.4:8009/portal


ProxyPass / http://192.168.1.4/
ProxyPassReverse / http://192.168.1.4/

</VirtualHost> 

Let me know what you think can be wrong in it.
Here is one more forum where I asked this question
http://www.linuxquestions.org/questions/showthread.php?p=4245596&posted=1#post4245596

may be if some one replies back to me it might help them  to understand my 
problem.



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by "bfree@free-man.net" <bf...@free-man.net>.
assuming your apache website can be seen from the internet, meaning you 
have a domain the the dns is directed to apache and you have setup 
apache to deal with the iP of the domain,  say you don't have ajp setup.
I have many instances of tomcat that are reached through apache.
if you find the ajp in the conf, mine is in proxy_ajp.conf
it has
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /java/ ajp://localhost:8009/



=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
James Godrej sent the following on 2/1/2011 5:41 AM:

> 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.
> 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).
>
> apache vhost can be read here
> http://pastebin.com/L32D6ii5
>
> 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.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by James Godrej <ja...@yahoo.in>.
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.



----- Original Message ----
From: Martin Kuba <ma...@ics.muni.cz>
To: users@httpd.apache.org
Sent: Tue, 1 February, 2011 7:42:32 PM
Subject: Re: [users@httpd] 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
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University            http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache as a front end to tomcat instance

Posted by Martin Kuba <ma...@ics.muni.cz>.
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
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub@ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------


Re: [users@httpd] apache as a front end to tomcat instance

Posted by Igor Galić <i....@brainsware.org>.
----- "James Godrej" <ja...@yahoo.in> wrote:

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

users@tomcat.apache.org knows ;)
We tell people to use mod_proxy_(ajp|http)

> 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).
> 
> apache vhost can be read here
> http://pastebin.com/L32D6ii5
> 
> 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.

It's probably not. You're probably having browser cache issues.

Does your back-end application knows it's running behind a proxy?
Does it know how to put the URLs together? Does it know it's running
on port 80 and in /portal?

It appears it doesn't, because it links stuff the CSS and the JS to
/library/skin/default/... and /library/js/... which are caught by your
catch-all reverse proxy.

If your application cannot be taught better, then you should use
mod_proxy_html to fix the markup yourself. See Nick Kew's article
http://www.apachetutor.org/admin/reverseproxies for a reference.

Given that it's a war deployed in tomcat it should be possible.

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org