DIMON4G
31.01.2009, 16:14
Кароче хочу держать 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 то всё норм. Помогите, чё надо сделать? :mad:
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 то всё норм. Помогите, чё надо сделать? :mad: