Показать сообщение отдельно
Старый 08.10.2002, 23:25     # 10
Bespalov Roman
Junior Member
 
Аватар для Bespalov Roman
 
Регистрация: 08.07.2002
Адрес: г.Белёв, Тульская обл.
Сообщения: 182

Bespalov Roman Путь к славе только начался
Прошу более подробно рассмотреть мой случай. Что-то здесь явно не так.

Вот index.htm из localhost:

<html>
<head>
<title>Белёвщина-Post</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="window-target" content="_top">
</head>
<frameset rows="86,342*" border="0" framespacing="0" frameborder="NO" cols="*">
<frame name="headframe" scrolling="NO" noresize src="general/headline.htm" >
<frame name="mainframe" src="general/main.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF">
</body>
</noframes>
</html>

Он расположен в C:\Web_Site\BEL_SITE\Belev.
С ним все нормально, он загружается.

А вот index.htm из C:\Web_Site\TEH_SITE\Tehprocess:

<html>
<head>
<title>ООО "Техпроцесс"</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="window-target" content="_top">
<meta name="keywords" content="Спрут">
<meta name="description" content="">
</head>
<frameset rows="110,342*" cols="143,599*" border="0" framespacing="0" frameborder="NO">
<frame name="logoframe" scrolling="NO" noresize src="menu/logo.htm" >
<frame name="headframe" scrolling="NO" noresize src="menu/headline.htm" >
<frame name="menuframe" scrolling="NO" noresize src="menu/menu.htm">
<frame name="mainframe" src="p_gen/main.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF">
</body>
</noframes>
</html>

Я пишу в httpd.conf:

<VirtualHost 127.0.0.2>
ServerAdmin bespalov@belev.tula.net
ServerName serv1
DocumentRoot "C:/Web_Site/TEH_SITE/Tehprocess"
ScriptAlias /cgi-bin/ "C:/Web_Site/TEH_SITE/Tehprocess/cgi-bin/"
ErrorLog C:/Web_Site/TEH_SITE/error.log
CustomLog C:/Web_Site/TEH_SITE/access.log common
</VirtualHost>

В c:\windows\hosts - '127.0.0.2 serv1', гружу Apache, localhost - все нормально, serv1 - страница не найдена.

error.log:
[Thu Oct 03 19:48:57 2002] [error] [client 127.0.0.2] File does not exist: c:/web_site/teh_site/tehprocess/general/headline.htm
[Thu Oct 03 19:48:57 2002] [error] [client 127.0.0.2] File does not exist: c:/web_site/teh_site/tehprocess/general/main.htm

access.log:
127.0.0.2 - - [03/Oct/2002:19:48:57 +0400] "GET / HTTP/1.0" 200 483
127.0.0.2 - - [03/Oct/2002:19:48:57 +0400] "GET /general/headline.htm HTTP/1.0" 404 276
127.0.0.2 - - [03/Oct/2002:19:48:57 +0400] "GET /general/main.htm HTTP/1.0" 404 272

В serv1 нет файла c:/web_site/teh_site/tehprocess/general/headline.htm и дерриктории такой нет и index.htm из serv1 такой файл - general/headline.htm не грузит, но его грузит index.htm из localhost (!???!), а DocumentRoot у serv1 уже другой и "нужные" страницы не найдены в обоих фреймах.
Другими словами, на serv1 Apache грузит index.htm из localhost.

Что не так? Где я еще мог напортачить?
__________________
Беспалов Роман
Bespalov Roman вне форума