[LUGOS] Re: DNS in named

Rok r at rula.net
Fri Sep 30 12:20:55 CEST 2005


> Ne vem, kaj imašt v tehle <VirtualHost xxx.xxx.xxx.xxx> 
> zapisano. Ampak v resnici bi morala biti imena, ne pa IPji. Recimo
> 
> <VirtualHost www.tetta.org:80>
> ...
>      DocumentRoot /home/tetta/public_html ...
> </VirtualHost>
> 
> <VirtualHost www.tetta.org:800>
> ...
>      DocumentRoot /home/tetta_on_port_800/public_html
> ...
> </VirtualHost>
> 
> <VirtualHost www.ulcar.net:80>
> ...
>      DocumentRoot /var/www/html
> ...
> </VirtualHost>
> 
> In tako naprej.

metod, kaj si cist prprican? pri meni je *:80
imam pa en kup name virtualnih serverjev
pred tem mam vklopljeno direktivo
---
NameVirtualHost *:80
---
potem pa vhoste po vrsti, prvi pa mislim da pomeni katero stran naj prikaze,
ce virtualhost ni nastavljen
---
#undefined
<VirtualHost *:80>
    DocumentRoot /home/www/undefined
    ErrorDocument  404  /
    ErrorLog logs/undefined-error_log
    CustomLog logs/undefined-access_log undefined
</VirtualHost>

#www.prvi.host
<VirtualHost *:80>
    DocumentRoot /home/www/www.prvi.host
    ServerName www.prvi.host
    ErrorLog logs/www.prvi.host-error_log
    CustomLog logs/www.prvi.host-access_log combined
</VirtualHost>

#www.drugi.host
<VirtualHost *:80>
    DocumentRoot /home/www/www.drugi.host
    ServerName www.drugi.host
    ErrorLog logs/www.drugi.host-error_log
    CustomLog logs/www.drugi.host-access_log combined
</VirtualHost>
---
...in tako naprej

lp, rok.



More information about the lugos-list mailing list