nixp.ru v3.0

25 апреля 2024,
четверг,
20:23:46 MSK

stealth написал 12 июля 2008 года в 11:26 (851 просмотр) Ведет себя неопределенно; открыл 103 темы в форуме, оставил 124 комментария на сайте.

доброго времини суток

у меня такая проблема

после настройки виртуал хоста home.stealth.ru

на маем локалнем сервере перестал работать stealth.am

ранше прекрасно работал

сказать не работает это не то

если канкретнее то и lynx stealth.am и lynx home.stealth.ru выводит одно и тоже

выводет страницу home.stealth.ru.

Anarchist

Содержимое конфигов телепаты считывать будут?

stealth

### 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

#

# 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 home.stealth.ru:80

#

# 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.

#

ServerAlias www.### 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

#

# 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 home.stealth.ru:80

#

# 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.

#

ServerAlias www.home.stealth.ru

ServerAdmin stealth@ya.ru

DocumentRoot /var/www/html/home/

ServerName home.stealth.ru

ServerAlias home.stealth.ru www.home.stealth.ru

CustomLog logs/home.stealth.ru-access_log common

Anarchist

Молодец!

stealth
на маем локалнем сервере перестал работать stealth.am

А stealth.am как объявлен?

stealth

Тоесть как объявлен? O_o

Anarchist
stealth
Тоесть как объявлен? O_o

Если ты хочешь, чтобы всё работало, то должен тоже как VirtualHost.

stealth

Так?

DocumentRoot /var/www/html/site1

ServerName site1.domain.ru

DocumentRoot /var/www/html/site2

ServerName site2.domain.ru

Anarchist
stealth
Так?

DocumentRoot /var/www/html/site1

ServerName site1.domain.ru

DocumentRoot /var/www/html/site2

ServerName site2.domain.ru

Согласно документации ход мыслей верный.

stealth

Опааааааааа,получилось! Спасибо друг ;)

Anarchist
stealth
Опааааааааа,получилось!

А приводить решение, расписывать что делал (особенно в плане DNS’а) кто будет?

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.