xinetd port redirection for Tomcat

2011-11-26 Thread Pierre Goupil
Good evening,

I use xinetd in order to bind my Tomcat 7.0.22 instance to port 80 without
any Unix privileges, on a Debian 6.0 box. Here's the (slightly obfuscated)
configuration file:

service www
{
socket_type = stream
protocol= tcp
user= root
wait= no
bind= my IP
port= 80
redirect= localhost 8080
disable = no
flags   = REUSE
log_type= FILEmy.log
log_on_success  -= PID HOST DURATION EXIT

per_source  = UNLIMITED
instances   = UNLIMITED
}

It works generally great but there's one problem: in my logs, only the
localhost IP appears! I mean, in PsiProbe for instance, when I try and see
the IPs of my visitors, I can only find localhost. Which is bad, regarding
traffic statistics...

Does any one have a clue? Shall I use another way of binding Tomcat to port
80? Which one? This way looked good as it's really simple to set up, but if
I must use something else, I don't care. Please note, I'd prefer stick to
xinetd, though.

Regards,

Pierre


RE: xinetd port redirection for Tomcat

2011-11-26 Thread Caldarale, Charles R
 From: Pierre Goupil [mailto:goupilpie...@gmail.com] 
 Subject: xinetd port redirection for Tomcat

 Shall I use another way of binding Tomcat to port 80?

Try iptables - it's even simpler.  Something like the following should work:

/sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

Set your Tomcat Connector port to 8080; external requests coming into port 80 
will be automatically redirected to 8080.  Make sure your Linux firewall has 
8080 open.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: xinetd port redirection for Tomcat

2011-11-26 Thread Pierre Goupil
Thanks Chuck! I'll try it tomorrow.



On Sat, Nov 26, 2011 at 9:40 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Pierre Goupil [mailto:goupilpie...@gmail.com]
  Subject: xinetd port redirection for Tomcat

  Shall I use another way of binding Tomcat to port 80?

 Try iptables - it's even simpler.  Something like the following should
 work:

 /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT
 --to-port 8080

 Set your Tomcat Connector port to 8080; external requests coming into
 port 80 will be automatically redirected to 8080.  Make sure your Linux
 firewall has 8080 open.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail and
 its attachments from all computers.




-- 
Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
assez fort.


Re: xinetd port redirection for Tomcat

2011-11-26 Thread Pierre Goupil
Chuck,

I managed to give it a try and it works perfectly. Thanks!

Pierre



On Sat, Nov 26, 2011 at 9:55 PM, Pierre Goupil goupilpie...@gmail.comwrote:

 Thanks Chuck! I'll try it tomorrow.




 On Sat, Nov 26, 2011 at 9:40 PM, Caldarale, Charles R 
 chuck.caldar...@unisys.com wrote:

  From: Pierre Goupil [mailto:goupilpie...@gmail.com]
  Subject: xinetd port redirection for Tomcat

  Shall I use another way of binding Tomcat to port 80?

 Try iptables - it's even simpler.  Something like the following should
 work:

 /sbin/iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT
 --to-port 8080

 Set your Tomcat Connector port to 8080; external requests coming into
 port 80 will be automatically redirected to 8080.  Make sure your Linux
 firewall has 8080 open.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail and
 its attachments from all computers.




 --
 Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
 assez fort.




-- 
Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
assez fort.


Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread André Warnier

Melanie wrote:

Thanks Cyrille for the information. This looks like it's a quick fix but
there is still another issue.

The Tomcat Startup Page is now being served, but not the actual springapp
J2EE web application that is located in the Tomcat directory ---
/usr/java/tomcat-5.5/webapps/springapp

Do you know the way to bring up the actual J2EE webpage instead of the
Tomcat Startup Page when the URL
http://www.robotronics.org is served by Apache and Tomcat?


Melanie,

backing up a little bit..

According to your various posts, originally, you have, on the same host :

- an Apache httpd, answering on http://www.robotronics.org (port 80), 
which serves html and javascript documents
- a Tomcat engine and an application in it, answering on 
http://www.robotronics.org:9080/Robotronics (thus port 9080, and a URI 
/Robotronics), but this application is located in the directory 
/usr/java/tomcat-5.5/webapps/springapp.


and you would apparently like that everything would answer to the URL
http://www.robotronics.org (port 80).

That is feasible, but the above is composed of several parts, and there 
are several ways to configure the individual parts.
So you have to be a bit systematic in the approach, and do one thing at 
a time.


A couple of questions to answer first are :
1) do you want to leave the html and javascript part under the Apache 
httpd server, or not ?
2) do you need this Apache httpd server for other things, apart from 
this specific case ?


The reason for these questions is that the easiest and simplest setup 
would be

- to move the html and javascript part onto the Tomcat server
- to eliminate the Apache httpd server
- to change the Tomcat server so that it responds to port 80 instead of 
port 9080
- to change the Tomcat configuration so that your webapp application 
becomes the default application of Tomcat, and thus answers to the URL

http://www.robotronics.org, without the /Robotronics prefix.

But, this simple setup would not be the right one if you want to keep 
the front-end Apache httpd, because for example you need it for other 
things (other virtual sites, other applications, etc..).
In that case, we would then recommend some form of proxying between 
Apache httpd and Tomcat.  And there are several possibilities there too.

Which is why I mention the need to take this one bit at a time..


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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
   Hello Melanie,

   I share André's vision :

#1 To get the root context http://www.robotronics.org/ forwarded to
Tomcat, the easiest way is to declare your java application as the
root context of your Tomcat (either naming it ROOT.war or declaring it
with path= in server.xml according to your deployment method).

#1.1 If you cannot rename your tomcat app to serve Tomcat's root
context, look at context rewriting ; it would look like :

ProxyPass / http://my-tomcat:9080/Robotronics
ProxyPassReverse /Robotronics http://www.robotronics.org/


#2 You can mix the approach #1 to serve most of the
http://www.robotronics.org/ content including the root context with
Tomcat with serving sub parts of the web site directly from Apache
Httpd or from other servers.

ProxyPreserveHost On
ProxyPass /handle/in/httpd/rather/than/in/tomcat !
ProxyPass / http://my-tomcat:9080/

#3 Some people are afraid about performance cost of serving static
content from Tomcat rather than from Apache Httpd. For such problems,
I feel the solution resides more in the usage of standard HTTP caching
header Expires and Cache-Control combined with mod_expires and
mod_disk_cache rather than in copying static resources on Apache
Httpd.

#4 I slightly disagree with André on asking Tomcat to listen on port
80 ; I am very reluctant to this approach as it requires to run the
JVM as root ; I prefer the iptables approach (well described in the in
the rimuhosting doc you referred - 1).

Hope this helps,

Cyrille

1) http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#iptables
--
clecl...@xebia.fr
http://blog.xebia.fr


On Mon, Mar 15, 2010 at 11:37 AM, André Warnier a...@ice-sa.com wrote:

 Melanie wrote:

 Thanks Cyrille for the information. This looks like it's a quick fix but
 there is still another issue.

 The Tomcat Startup Page is now being served, but not the actual springapp
 J2EE web application that is located in the Tomcat directory ---
 /usr/java/tomcat-5.5/webapps/springapp

 Do you know the way to bring up the actual J2EE webpage instead of the
 Tomcat Startup Page when the URL
 http://www.robotronics.org is served by Apache and Tomcat?

 Melanie,

 backing up a little bit..

 According to your various posts, originally, you have, on the same host :

 - an Apache httpd, answering on http://www.robotronics.org (port 80), which 
 serves html and javascript documents
 - a Tomcat engine and an application in it, answering on 
 http://www.robotronics.org:9080/Robotronics (thus port 9080, and a URI 
 /Robotronics), but this application is located in the directory 
 /usr/java/tomcat-5.5/webapps/springapp.

 and you would apparently like that everything would answer to the URL
 http://www.robotronics.org (port 80).

 That is feasible, but the above is composed of several parts, and there are 
 several ways to configure the individual parts.
 So you have to be a bit systematic in the approach, and do one thing at a 
 time.

 A couple of questions to answer first are :
 1) do you want to leave the html and javascript part under the Apache httpd 
 server, or not ?
 2) do you need this Apache httpd server for other things, apart from this 
 specific case ?

 The reason for these questions is that the easiest and simplest setup would be
 - to move the html and javascript part onto the Tomcat server
 - to eliminate the Apache httpd server
 - to change the Tomcat server so that it responds to port 80 instead of port 
 9080
 - to change the Tomcat configuration so that your webapp application becomes 
 the default application of Tomcat, and thus answers to the URL
 http://www.robotronics.org, without the /Robotronics prefix.

 But, this simple setup would not be the right one if you want to keep the 
 front-end Apache httpd, because for example you need it for other things 
 (other virtual sites, other applications, etc..).
 In that case, we would then recommend some form of proxying between Apache 
 httpd and Tomcat.  And there are several possibilities there too.
 Which is why I mention the need to take this one bit at a time..


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


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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread André Warnier

Cyrille Le Clerc wrote:


#4 I slightly disagree with André on asking Tomcat to listen on port
80 ; I am very reluctant to this approach as it requires to run the
JVM as root ;


No, it does not, if you run the JVM under jsvc (commons-daemon).
This is how most Linux packages nowadays set it up by default.

But of course, you cannot run 2 servers at the same time listening on 
the same port. So if you want to have Tomcat handle port 80, then you 
cannot have Apache httpd listening to that same port at the same time.



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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-15 Thread Cyrille Le Clerc
My mistake on port 80 without being root, I never used jsvc ; I relied
on startup.sh.

Cyrille

On Mon, Mar 15, 2010 at 1:53 PM, André Warnier a...@ice-sa.com wrote:
 Cyrille Le Clerc wrote:

 #4 I slightly disagree with André on asking Tomcat to listen on port
 80 ; I am very reluctant to this approach as it requires to run the
 JVM as root ;

 No, it does not, if you run the JVM under jsvc (commons-daemon).
 This is how most Linux packages nowadays set it up by default.

 But of course, you cannot run 2 servers at the same time listening on the
 same port. So if you want to have Tomcat handle port 80, then you cannot
 have Apache httpd listening to that same port at the same time.


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



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



Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Melanie
 Hello,

 This question requires knowledge of Linux Apache Tomcat Server.

 I have a website with domain name for instance: www.robotronics.org
 However this site is only for HTML and Javascript.

 I have a Java J2EE site on the same domain name but you can't get to it
 unless you type the port:
 http://www.robotronics.org:9080/Robotronics

 How can I get the domain name www.robotronics.org to point to the Java
 J2EE site without having to type in the port 9080 and the directory
 Robotronics?

 I found one site that gives some ideas on how to do it --
 http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#mod_proxy

 I tried to follow the instructions and could not get this to work.

 Thank you,



RE: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Caldarale, Charles R
 From: Melanie [mailto:melanie.v...@gmail.com]
 Subject: Question on Linux Tomcat Apache Server and Port Redirection
 for a robotics site

You don't bother to mention what your current port 80 web server is, not what 
version of Tomcat you're using.  The links below presume you're using httpd and 
the current version of Tomcat.

 I found one site that gives some ideas on how to do it --
 http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#mod_proxy

mod_jk2 hasn't been supported in several years; don't even think about using it.

For proper instructions, read this first:
http://wiki.apache.org/tomcat/FAQ/Connectors

If you need it, the full doc is here:
http://tomcat.apache.org/connectors-doc/

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



RE: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Todd Hicks
Melanie, 

I would recommend using the Apache Tomcat Connector mod_jk. Documentation can 
be found here: 
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html  
See what you can make of it.

-Original Message-
From: Melanie [mailto:melanie.v...@gmail.com] 
Sent: Sunday, March 14, 2010 6:47 PM
To: users@tomcat.apache.org
Subject: Question on Linux Tomcat Apache Server and Port Redirection for a 
robotics site

 Hello,

 This question requires knowledge of Linux Apache Tomcat Server.

 I have a website with domain name for instance: www.robotronics.org
 However this site is only for HTML and Javascript.

 I have a Java J2EE site on the same domain name but you can't get to it
 unless you type the port:
 http://www.robotronics.org:9080/Robotronics

 How can I get the domain name www.robotronics.org to point to the Java
 J2EE site without having to type in the port 9080 and the directory
 Robotronics?

 I found one site that gives some ideas on how to do it --
 http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#mod_proxy

 I tried to follow the instructions and could not get this to work.

 Thank you,



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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Melanie
Hi,

The version of Tomcat is 5.5.

As far as the other question on what is my current port 80 web server is? I
don't understand the question exactly.

It is a virtual dedicated server.

-Melanie

On Sun, Mar 14, 2010 at 6:56 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Melanie [mailto:melanie.v...@gmail.com]
  Subject: Question on Linux Tomcat Apache Server and Port Redirection
  for a robotics site

 You don't bother to mention what your current port 80 web server is, not
 what version of Tomcat you're using.  The links below presume you're using
 httpd and the current version of Tomcat.

  I found one site that gives some ideas on how to do it --
  http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#mod_proxy

 mod_jk2 hasn't been supported in several years; don't even think about
 using it.

 For proper instructions, read this first:
 http://wiki.apache.org/tomcat/FAQ/Connectors

 If you need it, the full doc is here:
 http://tomcat.apache.org/connectors-doc/

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.




RE: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Caldarale, Charles R
 From: Melanie [mailto:melanie.v...@gmail.com]
 Subject: Re: Question on Linux Tomcat Apache Server and Port
 Redirection for a robotics site
 
 As far as the other question on what is my current port 80 web server
 is? I don't understand the question exactly.

You previously stated:

  I have a website with domain name for instance: www.robotronics.org
  However this site is only for HTML and Javascript.

Something has to be listening on port 80, in order to respond to browser 
requests for your existing HTML and Javascript; what is it?  (From the headers 
in the responses from your website, it appears to be httpd 2.2.8 - which is a 
couple of years old and could stand updating.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Melanie
The Apache server appears to be:
Apache HTTP Server Version 2.2
On Sun, Mar 14, 2010 at 7:25 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Melanie [mailto:melanie.v...@gmail.com]
  Subject: Re: Question on Linux Tomcat Apache Server and Port
  Redirection for a robotics site
 
  As far as the other question on what is my current port 80 web server
  is? I don't understand the question exactly.

 You previously stated:

   I have a website with domain name for instance: www.robotronics.org
   However this site is only for HTML and Javascript.

 Something has to be listening on port 80, in order to respond to browser
 requests for your existing HTML and Javascript; what is it?  (From the
 headers in the responses from your website, it appears to be httpd 2.2.8 -
 which is a couple of years old and could stand updating.)

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.




RE: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Todd Hicks
That's why I suggested mod_jk.


-Original Message-
From: Melanie [mailto:melanie.v...@gmail.com] 
Sent: Sunday, March 14, 2010 7:35 PM
To: Tomcat Users List
Subject: Re: Question on Linux Tomcat Apache Server and Port Redirection for a 
robotics site

The Apache server appears to be:
Apache HTTP Server Version 2.2
On Sun, Mar 14, 2010 at 7:25 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Melanie [mailto:melanie.v...@gmail.com]
  Subject: Re: Question on Linux Tomcat Apache Server and Port
  Redirection for a robotics site
 
  As far as the other question on what is my current port 80 web server
  is? I don't understand the question exactly.

 You previously stated:

   I have a website with domain name for instance: www.robotronics.org
   However this site is only for HTML and Javascript.

 Something has to be listening on port 80, in order to respond to browser
 requests for your existing HTML and Javascript; what is it?  (From the
 headers in the responses from your website, it appears to be httpd 2.2.8 -
 which is a couple of years old and could stand updating.)

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.




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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Melanie
I am compiling mod_jk source code on the server. The command to compile is
./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)

I did a quick linux find. -name apxs under the usr directory and nothing
turned up for apxs.

I don't think the mod_jk can be built without it. Is it because Apache Http
server is only 2.2 version?




On Sun, Mar 14, 2010 at 7:38 PM, Todd Hicks electronjoc...@hotmail.comwrote:

 That's why I suggested mod_jk.


 -Original Message-
 From: Melanie [mailto:melanie.v...@gmail.com]
 Sent: Sunday, March 14, 2010 7:35 PM
 To: Tomcat Users List
 Subject: Re: Question on Linux Tomcat Apache Server and Port Redirection
 for a robotics site

 The Apache server appears to be:
 Apache HTTP Server Version 2.2
 On Sun, Mar 14, 2010 at 7:25 PM, Caldarale, Charles R 
 chuck.caldar...@unisys.com wrote:

   From: Melanie [mailto:melanie.v...@gmail.com]
   Subject: Re: Question on Linux Tomcat Apache Server and Port
   Redirection for a robotics site
  
   As far as the other question on what is my current port 80 web server
   is? I don't understand the question exactly.
 
  You previously stated:
 
I have a website with domain name for instance: www.robotronics.org
However this site is only for HTML and Javascript.
 
  Something has to be listening on port 80, in order to respond to browser
  requests for your existing HTML and Javascript; what is it?  (From the
  headers in the responses from your website, it appears to be httpd 2.2.8
 -
  which is a couple of years old and could stand updating.)
 
   - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
 received
  this in error, please contact the sender and delete the e-mail and its
  attachments from all computers.
 
 


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




RE: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Todd Hicks
Melanie,
Try a precompiled binary: 
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.28/

-Original Message-
From: Melanie [mailto:melanie.v...@gmail.com] 
Sent: Sunday, March 14, 2010 7:47 PM
To: Tomcat Users List
Subject: Re: Question on Linux Tomcat Apache Server and Port Redirection for a 
robotics site

I am compiling mod_jk source code on the server. The command to compile is
./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)

I did a quick linux find. -name apxs under the usr directory and nothing
turned up for apxs.

I don't think the mod_jk can be built without it. Is it because Apache Http
server is only 2.2 version?




On Sun, Mar 14, 2010 at 7:38 PM, Todd Hicks electronjoc...@hotmail.comwrote:

 That's why I suggested mod_jk.


 -Original Message-
 From: Melanie [mailto:melanie.v...@gmail.com]
 Sent: Sunday, March 14, 2010 7:35 PM
 To: Tomcat Users List
 Subject: Re: Question on Linux Tomcat Apache Server and Port Redirection
 for a robotics site

 The Apache server appears to be:
 Apache HTTP Server Version 2.2
 On Sun, Mar 14, 2010 at 7:25 PM, Caldarale, Charles R 
 chuck.caldar...@unisys.com wrote:

   From: Melanie [mailto:melanie.v...@gmail.com]
   Subject: Re: Question on Linux Tomcat Apache Server and Port
   Redirection for a robotics site
  
   As far as the other question on what is my current port 80 web server
   is? I don't understand the question exactly.
 
  You previously stated:
 
I have a website with domain name for instance: www.robotronics.org
However this site is only for HTML and Javascript.
 
  Something has to be listening on port 80, in order to respond to browser
  requests for your existing HTML and Javascript; what is it?  (From the
  headers in the responses from your website, it appears to be httpd 2.2.8
 -
  which is a couple of years old and could stand updating.)
 
   - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
 received
  this in error, please contact the sender and delete the e-mail and its
  attachments from all computers.
 
 


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




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



Re: Question on Linux Tomcat Apache Server and Port Redirection for a robotics site

2010-03-14 Thread Melanie
Thanks Cyrille for the information. This looks like it's a quick fix but
there is still another issue.

The Tomcat Startup Page is now being served, but not the actual springapp
J2EE web application that is located in the Tomcat directory ---
/usr/java/tomcat-5.5/webapps/springapp

Do you know the way to bring up the actual J2EE webpage instead of the
Tomcat Startup Page when the URL
http://www.robotronics.org is served by Apache and Tomcat?

No, I'm not French. The Google translations is rough.

Thank you,

-Melanie


On Sun, Mar 14, 2010 at 8:00 PM, Cyrille Le Clerc clecl...@apache.orgwrote:

 Hello Melanie,

 I personally prefer to use HTTP between Apache and Tomcat rather than
 the proprietary AJP protocol.

 According to your description, I feel you can simply achive your need
 with the following httpd.conf configuration (no other binaries than
 out-of-the-box Apache Httpd needed) :

 -- begin httpd.conf sample fragment --

 # load proxy and proxy_http modules
 LoadModule proxy_module libexec/apache2/mod_proxy.so
 LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
 ...

 # route all traffic to Tomcat
 ProxyPreserveHost On
 ProxyPass / http://my-tomcat-server:9080/

 -- end httpd.conf sample fragment --

 I blogged in French about Tomcat-Apache configuration. Hopefully, as
 your name sounds french :-) you can understand them ; otherwise, they
 are google-translate friendly :


 http://blog.xebia.fr/2010/02/03/tomcat-load-balancing-mod_proxy-vs-mod_jk-le-match/

 http://blog.xebia.fr/2009/05/05/tomcat-adresse-ip-de-linternaute-load-balancer-reverse-proxy-et-header-http-x-forwarded-for/

 http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/


 Hope this helps, good luck

 Cyrille

 --
 Cyrille Le Clerc
 clecl...@xebia.fr
 http://blog.xebia.fr

 On Sun, Mar 14, 2010 at 11:47 PM, Melanie melanie.v...@gmail.com wrote:
  Hello,
 
  This question requires knowledge of Linux Apache Tomcat Server.
 
  I have a website with domain name for instance: www.robotronics.org
  However this site is only for HTML and Javascript.
 
  I have a Java J2EE site on the same domain name but you can't get to it
  unless you type the port:
  http://www.robotronics.org:9080/Robotronics
 
  How can I get the domain name www.robotronics.org to point to the Java
  J2EE site without having to type in the port 9080 and the directory
  Robotronics?
 
  I found one site that gives some ideas on how to do it --
  http://rimuhosting.com/mod_jk2_and_mod_proxy_ajp.jsp#mod_proxy
 
  I tried to follow the instructions and could not get this to work.
 
  Thank you,
 
 

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




port redirection

2008-02-28 Thread Melanie Pfefer
Hello

a servlet is running on port 9000 while apache in
running on port 80.

Is there a way to change this behavior so that users
who type
http://server1/OpenObject?doc=ERW

will receive the same content of
http://server1:9000/OpenObject?doc=ERW but the URL
does not change (stays
http://server1/OpenObject?doc=ERW)


The change is needed in the servlet or the apache?

thanks




  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: port redirection

2008-02-28 Thread Dapeng

use mok_jk


Melanie Pfefer wrote:

Hello

a servlet is running on port 9000 while apache in
running on port 80.

Is there a way to change this behavior so that users
who type
http://server1/OpenObject?doc=ERW

will receive the same content of
http://server1:9000/OpenObject?doc=ERW but the URL
does not change (stays
http://server1/OpenObject?doc=ERW)


The change is needed in the servlet or the apache?

thanks




  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: port redirection

2008-02-28 Thread dapeng
use mok_jk


Melanie Pfefer wrote:
 Hello

 a servlet is running on port 9000 while apache in
 running on port 80.

 Is there a way to change this behavior so that users
 who type
 http://server1/OpenObject?doc=ERW

 will receive the same content of
 http://server1:9000/OpenObject?doc=ERW but the URL
 does not change (stays
 http://server1/OpenObject?doc=ERW)


 The change is needed in the servlet or the apache?

 thanks




   ___
 Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
 now.
 http://uk.answers.yahoo.com/

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

AdmID:89688353F6A00E46AC970BDB17B1C29E

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

port redirection

2008-02-28 Thread melanie_pfefer
Hello

a servlet is running on port 9000 while apache in
running on port 80.

Is there a way to change this behavior so that users
who type
http://server1/OpenObject?doc=ERW

will receive the same content of
http://server1:9000/OpenObject?doc=ERW but the URL
does not change (stays
http://server1/OpenObject?doc=ERW)


The change is needed in the servlet or the apache?

thanks




  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

AdmID:2C0787D4E129851F90208AB1F7EF0325

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]