Показать сообщение отдельно

Помогите с виртуальными хостами
  #1  
Старый 31.01.2009, 16:14
DIMON4G
Участник форума
Регистрация: 25.05.2008
Сообщений: 201
С нами: 9453915

Репутация: 296
По умолчанию Помогите с виртуальными хостами

Кароче хочу держать 2 сайта на 1 сервере т.е. надо создать виртуальный хост, в обшем создал, вот конфиг его:

1*

Код:
<VirtualHost *:80>

ServerName all-vrn.ath.cx
DocumentRoot /var/vhosts/all-vrn.ath.cx/public_html

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

ErrorLog /var/vhosts/all-vrn.ath.cx/logs/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/vhosts/all-vrn.ath.cx/logs/access.log combined
</VirtualHost>
2*

Код:
<VirtualHost 127.0.1.1:80>

ServerName cs-zona.mine.nu
DocumentRoot /var/vhosts/cs-zona.mine.nu/public_html

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/vhosts/cs-zona.mine.nu/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>

ErrorLog /var/vhosts/cs-zona.mine.nu/logs/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/vhosts/cs-zona.mine.nu/logs/access.log combined
</VirtualHost>
когда я захожу на главный домен all-vrn.ath.cx то всё норм, а когда захожу на cs-zona.mine.nu, то пападаю сюда all-vrn.ath.cx. Когда с сервера захожу на 127.0.1.1 то всё норм. Помогите, чё надо сделать?
 
Ответить с цитированием