Показать сообщение отдельно
  #4  
Старый 16.02.2003, 07:28
Sergio Sergio вне форума
Лаборант
 
Регистрация: 13.04.2002
Сообщений: 214
Отправить сообщение для Sergio с помощью ICQ
Радость

Настройте name-based virtual host.

В файле hosts (c:\winnt\system32\drivers\etc\hosts) создаете запись типа 127.0.0.1 www.cooldomain.local, а в конфиге апачи примерно следующее:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Исходный код </td></tr><tr><td id="CODE">
### Section 3: Virtual Hosts
NameVirtualHost 127.0.0.1

<VirtualHost www.cooldomain.local>
ServerAdmin webmaster@cooldomain.ru
DocumentRoot "C:/InetPub/www.cooldomain.ru/public_html"
<Directory "C:/InetPub/www.cooldomain.ru/public_html">
Options Indexes Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "C:/InetPub/www.cooldomain.ru/public_html/cgi-bin/"
<Directory "C:/InetPub/www.cooldomain.ru/public_html/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ServerName www.cooldomain.ru
ErrorLog "C:/InetPub/logfiles/www.cooldomain.ru.error.log"
</VirtualHost>
[/QUOTE]

ну и так далее... У меня работает без проблем.



__________________
I don't exist when you're not here...
Ответить с цитированием