Well, there are other options.  There are a ton of port mapping
facilities out there (check the Linux firewall toolkits) that could map
this.  Also, if you are just looking to take all requests to
mail.server.com and have tomcat do the calls to another, even farther
back-end system then I'm sure you could build a servlet to handle that
pass through.  I've done this before to pull an HTML page from another
internal server via the external servlet (I didn't agree with the
design, but they wanted it done), and it worked just fine.  You set the
server to recognize mail.server.com and then setup a virtual host in
tomcat to map to the specific relay webapp.  In fact if you can get
Apache working on the main server there is no real reason you couldn't
use that to provide a link to the other server--provided it had a tomcat
instance.  It is similar to loadbalancing across multiple servers.  So,
there are about 10 different ways to do this, pick the one that works
best for your network architecture.

I agree with the others, though--it would be better to have the router
doing the mapping.  Some routers/firewalls are even smart enough to do
exactly this--even if host1 and host2 have the same IP the
firewall/router can map them to different servers/ports on the fly.

-Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

>>> [EMAIL PROTECTED] 07/25/02 12:35PM >>>
Tomcat isn't a router.  What you're trying to do isn't really a tomcat
question, it's more a general web server question, or router question.
If you don't have another ip address then I really recommend that you
just map another port on the router to the other webserver.  That's
the
simpliest and easiest solution and it's what routers are made to do.

--mikej
-=-----
mike jackson
[EMAIL PROTECTED] 

-----Original Message-----
From: Nicolas Brasseur [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 25, 2002 10:24 AM
To: Tomcat Users List
Subject: RE: Routing With tomcat


So, you confirm Tomcat is unable to re-route HTTP
request based on the virtual hostname ?
Don't you know a kind of software-router able to do
that ?

Thanks a lot ...


--- "Turner, John" <[EMAIL PROTECTED]> wrote:
>
> My advice is get a second IP from your ISP for
> mail.brol.be.
>
> If these are different machines, and you are
> "hiding" behind one routable IP
> address, you're going to have problems.  You don't
> tomcat invoked/involved
> in every single request to the webmail server, and
> yet if the webmail server
> isn't available on port 80, you will have problems
> with end-users, as most
> corporate firewalls restrict traffic to port 80.
>
> John Turner
> [EMAIL PROTECTED] 
>
> -----Original Message-----
> From: Nicolas Brasseur
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, July 25, 2002 12:36 PM
> To: Tomcat Users List
> Subject: RE: Routing With tomcat
>
>
> www.brol.be is pointing to the router that re-route
> request for port 80 to the Tomcat server, the IP
> address of the router is static and fixed by our
> ISP.
> So every HTTP request will be automaticaly routed to
> the Tomcat server.
>
>
> --- "Turner, John" <[EMAIL PROTECTED]> wrote:
> >
> > Ok, but if this is a different machine, I'm still
> > not understanding why
> > there is even an issue.  If www.brol.be = 1.2.3.4
> > and mail.brol.be =
> > 6.7.8.9, there's no possible way a request on port
> > 80 for mail.brol.be would
> > ever be seen by tomcat.
> >
> > Sounds like your DNS is messed up.  All you need
> to
> > do is set the correct IP
> > addresses for the two hostnames and you should be
> > good to go.  Your tomcat
> > server should never see requests for mail.brol.be
> if
> > they are separate
> > machines.
> >
> > If they aren't separate machines, you can't run
> more
> > than one thing on port
> > 80, unless you want to setup virtual hosting with
> > two separate URLs.  If you
> > wanted to do that, you could just write a filter
> on
> > www.brol.be that looks
> > at the request header and issues a redirect to
> > mail.brol.be if the request
> > header is equal to "mail.brol.be".
> >
> > John Turner
> > [EMAIL PROTECTED] 
> >
> >
> > -----Original Message-----
> > From: Nicolas Brasseur
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, July 25, 2002 12:14 PM
> > To: Tomcat Users List
> > Subject: RE: Routing With tomcat
> >
> >
> > Thanks for paying attention to my message John,
> >
> > Your second proposition is right, I have a web
> mail
> > client, actually a lotus domino server that listen
> > on
> > the port 80 (for other reasons it MUST be the port
> > 80).
> >
> > Nicolas
> >
> > --- "Turner, John" <[EMAIL PROTECTED]> wrote:
> > >
> > > You could use a filter in Tomcat, but that would
> > be
> > > overkill.
> > >
> > > On your router, add a static route for ports 25
> > and
> > > 110 (SMTP and POP3) to
> > > go to the IP address of the other machine.  Add
> > the
> > > IMAP port if you're
> > > using that port.
> > >
> > > Or are you really asking how to run a webmail
> > server
> > > that allows people to
> > > check and send mail via webpages served on port
> 80
> > > on a machine other than
> > > the tomcat server?
> > >
> > > John Turner
> > > [EMAIL PROTECTED] 
> > >
> > > -----Original Message-----
> > > From: Nicolas Brasseur
> > > [mailto:[EMAIL PROTECTED]] 
> > > Sent: Thursday, July 25, 2002 11:54 AM
> > > To: Tomcat Users List
> > > Subject: Routing With tomcat
> > >
> > >
> > > Could anyone tell me if it is possible to route
> > some
> > > specific request to another web server.
> > > More clearly, when a user type www.brol.be he
> > > receives
> > > a response from Tomcat, when he type
> mail.brol.be
> > he
> > > receives a response from another web server than
> > > tomcat.
> > > The domain brol.be is pointing to a router that
> > > route
> > > the request with destination port 80 to the
> > machine
> > > with the Tomcat server. How can I configure
> Tomcat
> > > to
> > > re-route request coming for virtual host
> > > mail.brol.be
> > > to another machine ...
> > >
> > > Thanks in advance ...
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Health - Feel better, live better
> > > http://health.yahoo.com 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> > http://health.yahoo.com 
> >
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com 
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
>
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to