Go Vegetarian

Go Vegetarian

Friday, August 22, 2008

http connector / address

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.

It happens in server.xml.

Example :

1) address="127.0.0.1"

Aug 22, 2008 3:18:47 PM org.apache.coyote.http11.
Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-127.0.0.1-18080

bash-3.00$ netstat -an | grep -i listen | grep 18080
127.0.0.1.18080 *.* 0 0 49152 0 LISTEN


2) address is not specified

Aug 22, 2008 3:19:26 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-18080

bash-3.00$ netstat -an | grep -i listen | grep 18080
*.18080 *.* 0 0 49152 0 LISTEN
*.18080 *.* 0 0 49152 0 LISTEN

Do you see the difference ?

-rudy-

No comments: