[LUGOS] Re: DNS in named

Metod Kozelj metod.kozelj at lugos.si
Fri Sep 30 11:46:13 CEST 2005


Howdy!

Ne vem, ali je že kdo na tole odgovoril ...

Linux Tetta wrote:

>Imam pa še eno pitanjce - tule prilagam kar cel httpd - mi kdo lahko pove
>zakaj se na vseh vnesenih domenah pod virtual hosti odpira stran ulcar.net??
>Eto httpd - zaradi ločevanja sem ga dal med zvezdice:
>  
>

[ snip ]

>### Section 3: Virtual Hosts
>#
># VirtualHost: If you want to maintain multiple domains/hostnames on your
># machine you can setup VirtualHost containers for them. Most configurations
># use only name-based virtual hosts so the server doesn't need to worry
>about
># IP addresses. This is indicated by the asterisks in the directives below.
>#
># Please see the documentation at 
># <URL:http://httpd.apache.org/docs-2.0/vhosts/>
># for further details before you try to setup virtual hosts.
>#
># You may use the command line option '-S' to verify your virtual host
># configuration.
>
>#
># Use name-based virtual hosting.
>#
>NameVirtualHost xxx.xxx.xxx.xxx              
>#tule sem namenoma skril IP, itak se ga da najti, pa vendar ;)
>
>#
># NOTE: NameVirtualHost cannot be used without a port specifier 
># (e.g. :80) if mod_ssl is being used, due to the nature of the
># SSL protocol.
>#
>
>#
># VirtualHost example:
># Almost any Apache directive may go into a VirtualHost container.
># The first VirtualHost section is used for requests without a known
># server name.
>#
>#<VirtualHost *:80>
>#    ServerAdmin webmaster at dummy-host.example.com
>#    DocumentRoot /www/docs/dummy-host.example.com
>#    ServerName dummy-host.example.com
>#    ErrorLog logs/dummy-host.example.com-error_log
>#    CustomLog logs/dummy-host.example.com-access_log common
>#</VirtualHost>
>
><VirtualHost xxx.xxx.xxx.xxx >
>    ServerAdmin admin at mail.com
>    DocumentRoot /var/www/html
>    ServerName www.ulcar.net
>    DirectoryIndex index.html index.htm index.php
>    ErrorLog logs/www.ulcar.net-error_log
>    CustomLog logs/www.ulcar.net-access_log common
></VirtualHost>
>
><VirtualHost xxx.xxx.xxx.xxx >
>    ServerAdmin admin at mail.com
>    DocumentRoot /var/www/html
>    ServerName ulcar.net
>    DirectoryIndex index.html index.htm index.php
>    ErrorLog logs/ulcar.net-error_log
>    CustomLog logs/ulcar.net-access_log common
></VirtualHost>
>
><VirtualHost xxx.xxx.xxx.xxx >
>   ServerAdmin admin at mail.com
>   DocumentRoot /home/tetta/public_html
>   ServerName www.tetta.org
>   DirectoryIndex index.html index.htm index.php
>   ErrorLog logs/www.tetta.org-error_log
>   CustomLog logs/www.tetta.org-access_log common
></VirtualHost>
>
><VirtualHost xxx.xxx.xxx.xxx>
>    ServerAdmin admin at mail.com
>    DocumentRoot /home/tetta/public_html
>    ServerName tetta.org
>    DirectoryIndex index.html index.htm index.php
>    ErrorLog logs/tetta.org-error_log
>    CustomLog logs/tetta.org-access_log common
></VirtualHost>
>  
>

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.

-- 
Peace!
  Mkx

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
---- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc



More information about the lugos-list mailing list