Sorry for the semi-off-topic question, but I solved the problem. If you let apache configuration as default, it you bind to every address configured to the host. You have to configure Apache to listen to just one address in httpd.conf:

uncomment the line:

#Listen host:80

Use the IP address of the host (not the new one configured to tomcat)

Thanks all
Emerson

Emerson Cargnin wrote:
do I have to change other nodes of server.xml file? or just the http connector is enough????

Ok I added the address property to Server too, but when I try to start apache (http) i got the error:

[Mon Mar 22 15:15:24 2004] [crit] (98)Address already in use: make_sock: could not bind to port 80

I used the following command to add the new address :

ifconfig eth0:1 10.9.6.85

I remember that it has worked before.

My ifconfig output:

eth0 Encapsulamento do Link: Ethernet Endereço de HW 00:02:A5:D8:DC:0D
inet end.: 10.9.7.58 Bcast:10.9.255.255 Masc:255.255.0.0
endereço inet6: fe80::202:a5ff:fed8:dc0d/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:2489168 errors:0 dropped:0 overruns:0 frame:0
TX packets:942721 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:100
RX bytes:304408590 (290.3 Mb) TX bytes:1063913650 (1014.6 Mb)
IRQ:5 Endereço de E/S:0x1000 Memória:fe200000-fe200038


eth0:1 Encapsulamento do Link: Ethernet Endereço de HW 00:02:A5:D8:DC:0D
inet end.: 10.9.6.85 Bcast:10.255.255.255 Masc:255.0.0.0
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
IRQ:5 Endereço de E/S:0x1000 Memória:fe200000-fe200038



Any clues???


D'Alessandro, Arthur wrote:

address For servers with more than one IP address, this attribute
specifies which address will be used for listening on the specified
port. By default, this port will be used on all IP addresses associated
with the server.
From:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
-----Original Message-----
From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 11:31 AM
To: Tomcat Users List
Subject: Re: bindaddress configuration??


any answer for this question?????

Emerson Cargnin wrote:

I need to setup tomcat to listen to a different IP address (a virtual one create with ifconfig linux command)? I did it once a long time


ago,

nut don't remember exactly how to do it...

I remember that this was a property at some node of server.xml :)

thanks








--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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



Reply via email to