Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: apache na opredelen IP:port


  • Subject: Re: lug-bg: apache na opredelen IP:port
  • From: gf@xxxxxx (Georgi Chorbadzhiyski)
  • Date: Thu, 13 Dec 2001 11:49:33 +0200



Emil Tantilov wrote:
> 
> 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,

Otkas ot httpd.conf, koito pravi tochno tova koeto iskash (ako sam razbral
pravilno de :) Ne si igrai s BindAddress, chestno kazano dosega ne sam
uspial da svarsha neshto sviastno izpolzvaiki tazi opcia.


----
Listen 10.0.0.1:80
Listen 10.0.0.2:80
Port 80
# BindAddress *
 
NameVirtualHost *:80
 
<VirtualHost *:80>
    ServerName boza.x.com
    DocumentRoot /home/boza
</VirtualHost>
 
<VirtualHost *:80>
    ServerName kifla.x.com
    DocumentRoot /home/kifla
</VirtualHost>

<VirtualHost 10.0.0.2:80>
    ServerName vafla.x.com
    DocumentRoot /home/vafla
</VirtualHost>
---
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.