[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ничего не понимаю (apache)



On Sat, Aug 17, 2002 at 02:49:35PM +0700, Yurkin Evgenie wrote:
> 
> Привет всем
> Случилось что то странное
> имем 

Внизу приведен пример описания виртуальных хостов. Рабочий на все 100.

> <VirtualHost  leto.yyy.com>
> DocumentRoot /aaa/bbb/html.www2/leto
> ServerName leto.yyy.com
> PassEnv ORACLE_HOME
> PassEnv ORACLE_SID
> PassEnv LD_LIBRARY_PATH
> PassEnv NLS_DATE_FORMAT
> PassEnv ORA_NLS33
> PassEnv NLS_LANG
> Action php-script /cgi-bin/php
> AddHandler php-script .php
> ErrorLog /var/log/apache/leto-error.log
> TransferLog /var/log/apache/leto-access.log
> ResourceConfig leto.yyy.srm
> AccessConfig  leto.yyy.access
> </VirtualHost>
> 
> при таком раскладе  сайт этого домена стартует с другого виртуал хоста
> 
> <VirtualHost www.yyy.com>
> ServerAdmin aaa@yyy.com
> DocumentRoot /aaa/bbb/html.www2
> ServerName www.yyy.com
> ErrorLog /var/log/apache/www.yyy.com-error.log
> TransferLog /var/log/apache/www.yyy.com-access.log
> </VirtualHost>
> 
> если я  в первом виртуале меняю leto на  на любой другой (скажем leto1)
> и в днс правлю  на leto1
> 
> hope   IN  A     111.111.111.111
> leto            CNAME           hope
> 
> то все живет хорошо  в чем может быть проблема??
> может кто сталкивался с таким?
> потому что я уже ничего не понимаю


### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them.
# Please see the documentation at <URL:http://www.apache.org/docs/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.

#
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
#
NameVirtualHost 194.186.190.190
#NameVirtualHost 12.34.56.78

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
#
<VirtualHost 194.186.190.190>
	ServerAdmin   yury@v6.ru
	DocumentRoot /var/www/
	ServerName    yorick.v6.ru
</VirtualHost>

<VirtualHost 194.186.190.190>
	ServerAdmin   yury@v6.ru
	DocumentRoot /home/yury/public_html/
	DirectoryIndex	index.phtml
	ServerName    www.yorick.v6.ru
	ErrorLog     /home/yury/public_html/logs/error.log
	CustomLog    /home/yury/public_html/logs/common.log common
</VirtualHost>

<VirtualHost 194.186.190.190>
        ServerAdmin   yury@v6.ru
        DocumentRoot /home/yury/public_html2/
        DirectoryIndex  index.phtml
        ServerName    worktime.v6.ru
        ErrorLog     /home/yury/public_html2/logs/error.log
        CustomLog    /home/yury/public_html2/logs/common.log common
</VirtualHost>
						
<VirtualHost 194.186.190.190>
	ServerAdmin   annav@v6.ru
        DocumentRoot /home/annav/public_html/
	ServerName    www.korotkevich.ru
        ErrorLog     /home/annav/public_html/logs/error.log
        CustomLog    /home/annav/public_html/logs/common.log common
	AddDefaultCharset windows-1251
	Options MultiViews Indexes SymLinksIfOwnerMatch Includes
	DirectoryIndex index.php index.html index.htm index.shtml index.cgi
</VirtualHost>			

<VirtualHost _default_:*>
</VirtualHost>

-- 
С уважением,
Лях Юрий
сервисный инженер, V6
tel/fax: +7 (095) 363-0140,
http://www.v6.ru



Reply to: