|
lug-bg: apache na opredelen IP:port
- Subject: lug-bg: apache na opredelen IP:port
- From: emo@xxxxxxxxxx (Emil Tantilov)
- Date: Wed, 12 Dec 2001 12:14:27 -0800
Hi-te,
Naskoro zapochnah da si igraia s apache 1.3 - opitwam se da go nakaram da
sluhti samo na opredeleno IP, po default s netstat wijdam che pokazwa *:http
(ili 0.0.0.0:80). Ima li niakoi predstawa kak da go nakaram da se zakachi na
opredeleno- IP?
Ot dokumentaciata sa dadeni Listen i BindAddress. Samo BindAddress w moia
sluchai ne warshi rabota, ako pak zadam Listen x.x.x.x:80 togawa httpd
wrashta greshka:
[crit] (98)Address already in use: make_sock: could not bind to port 80
( Ot httpd.conf:
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
"in addition to the default"? Koe e default? *:80 li? i moje li da se promeni?
Potarsih iz grupite - dosta hora sa imali sashtia problem - no otgoworite sa
ot tipa - imash neshto drugo na port 80 - samo deto az niamam nishto na port
80. Na sashtoto IP imam bind (dns) a sashto warwi i firewall (na iptables)
koito w momenta zabraniawa port80 ot wanshni IP-ta (internet). Moje bi
apache-to zaema port 80 a s Listen se opitwa otnowo da se bind-ne kam adresa
- no toi weche go e naprawil ... twa pone si mislia az.
Po princip me interesuwa ideiata da se zakachi opredelen service na tochno
opredeleno IP, a ne da se razliwat po wsichki IP-ta (w moia sluchai 3 - na
eth0, eth1 i lo) sashto bind sluhti na *:53 ...
W moia sluchai niama goliamo znachenie - prosto si misleh che shte e
po-pregledno ako mojeshe da se opredelia na koe IP opredelen service da
sluhti.
Wsiakakwi idei sa dobre doshli ...
Mersi predwaritelno,
Emo
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|