You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Moi <go...@heaven.club.ne.jp> on 2002/02/20 06:09:06 UTC

Listening Porblem?

Is there way to set up Tomcat to listen only given IP with port 80?
For example : My we server has several IDs and I'd like to configure
Tomcat4 listen only one IP with port 80 and other IPs will serve APACHE.


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Listening Porblem?

Posted by David Slater <dj...@bellsouth.net>.
Guess I'm not totally clear on what your intent is.  With virtual
hosting Apache listens on port 80 of all ip's you configure and forwards
the request to the appropriate engine that is listening on a _different_
port.  So set Tomcat to listen on 8009 or something instead and it
should work.

If, on the other hand, you want Tomcat to handle it's own requests
_directly_, then run it standalone with the HttpConnector listening on
port 80 and the Engine defaultHost entry set to the appropriate IP.
Remove any reference to it from Apache.

One of the above should do the job for you!  If not, try posting your
config files in your next reply and hopefully some others will jump in.


Moi wrote:
> So I did.
> And when run Apache, (which listens same port 80,but on the other IP
> than Tomcat4) after Tomcat4 it's not starting.
> ???
> 
> David Slater wrote:
> 
> 
>>>Tomcat4 listen only one IP with port 80 and other IPs will serve APACHE.
>>>
>>>
>>>
>>Sounds like IP based Virtual Hosting is what you need to configure in
>>Apache.  From httpd.conf:
>>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Listening Porblem? (apologies if it gets mangled.)

Posted by Joel Rees <jo...@alpsgiken.gr.jp>.
> So I did.
> And when run Apache, (which listens same port 80,but on the other IP
> than Tomcat4) after Tomcat4 it's not starting.
> ???

So, can you show us the relevant parts of your configuration files, the URLs
you are using, and any error messages or logs you get?

失礼ですが、設定ファイルの関係ある部分の上に、 URL アドレス及びエラーメッ
セージを ML に見せていただけます?

Joel

> David Slater wrote:
>
> >>Tomcat4 listen only one IP with port 80 and other IPs will serve APACHE.
> >>
> >>
> >
> > Sounds like IP based Virtual Hosting is what you need to configure in
> > Apache.  From httpd.conf:
> >
> > ### Section 3: Virtual Hosts
> > #
> > # VirtualHost: If you want to maintain multiple domains/hostnames on
your
> > # machine you can setup VirtualHost containers for them. Most
configurations
> > # use only name-based virtual hosts so the server doesn't need to worry
> > about
> > # IP addresses. This is indicated by the asterisks in the directives
below.
> > #
> > # Please see the documentation at
<URL:http://www.apache.org/docs/vhosts/>
> > # for further details before you try to setup virtual hosts.
> > #





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Listening Porblem?

Posted by Moi <go...@heaven.club.ne.jp>.
So I did.
And when run Apache, (which listens same port 80,but on the other IP
than Tomcat4) after Tomcat4 it's not starting.
???

David Slater wrote:

>>Tomcat4 listen only one IP with port 80 and other IPs will serve APACHE.
>>
>>
> 
> Sounds like IP based Virtual Hosting is what you need to configure in
> Apache.  From httpd.conf:
> 
> ### Section 3: Virtual Hosts
> #
> # VirtualHost: If you want to maintain multiple domains/hostnames on your
> # machine you can setup VirtualHost containers for them. Most configurations
> # use only name-based virtual hosts so the server doesn't need to worry
> about
> # IP addresses. This is indicated by the asterisks in the directives below.
> #
> # Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
> # for further details before you try to setup virtual hosts.
> #
> 
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Listening Porblem?

Posted by David Slater <dj...@bellsouth.net>.
Moi wrote:
> Is there way to set up Tomcat to listen only given IP with port 80?
> For example : My we server has several IDs and I'd like to configure
> Tomcat4 listen only one IP with port 80 and other IPs will serve APACHE.
> 

Sounds like IP based Virtual Hosting is what you need to configure in
Apache.  From httpd.conf:

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at <URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
#



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>