On Sat, Dec 10, 2005 at 07:28:55AM +0700, rito wrote:
> iya juga ya ... :) , tapi kalo menurut saya listening kan untuk
> menentukan port yang akan digunakan apache sebagai server. secara
> default service web menggunakan port 80.

TCP port tidak bisa berdiri sendiri tanpa IP address. Suatu TCP
datagram tidak bisa dikirim ke port 80 tanpa IP address, karena TCP
itu berdiri di atas IP.

"Listen 80" artinya listen di semua IP yg diconfigure di mesin itu
masing2 di port 80nya. IP addressnya tidak disebutkan secara
eksplisit, tapi tetap ada IP addressnya.

Ini dari comment di httpd.conf:

    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
    #
    #Listen 12.34.56.78:80

Dan ini dari dokumentasinya (tergantung versinya):
http://httpd.apache.org/docs/1.3/mod/core.html#listen
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen

Kalo ragu selalu pastikan ke sumber yg authoritative, yang lebih pasti
drpd sekedar menebak2.

Ronny

Attachment: pgplTX1rbwkAM.pgp
Description: PGP signature

Kirim email ke