<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Тестирование SSI на локальном сервере Apache]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=956&amp;type=atom" />
	<updated>2008-11-12T15:40:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=956</id>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6184#p6184" />
			<content type="html"><![CDATA[<p><strong>Благодарю Вас за рекомендации.&nbsp; </strong></p><p><em>В httpd.conf снял комментарии (#) и добавил аргументы в блок:</em></p><p>&lt;Directory &quot;C:/Program Files/Apache Software Foundation/Apache2.2/htdocs&quot;&gt;<br />&nbsp; &nbsp;Options Indexes FollowSymLinks<br />&nbsp; &nbsp;AllowOverride None<br />&nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp;Allow from all<br />&lt;/Directory&gt;</p><p><strong> Теперь блок выглядит так:</strong><br />&lt;Directory <strong>&quot;C:/apache&quot;</strong>&gt;<br />&nbsp; &nbsp;Options Indexes <strong>Includes</strong> FollowSymLinks <strong>SymLinksifOwnerMatch ExecCGI MultiViews</strong><br />&nbsp; &nbsp;AllowOverride <strong>All</strong><br />&nbsp; &nbsp;Order allow,deny<br />&nbsp; &nbsp;Allow from all<br />&nbsp; &nbsp;<strong>AddHandler server-parsed .shtml .shtm .html .htm</strong><br />&lt;/Directory&gt;</p><p><strong>SSI заработал.</strong></p>]]></content>
			<author>
				<name><![CDATA[kestler]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1591</uri>
			</author>
			<updated>2008-11-12T15:40:45Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6184#p6184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6181#p6181" />
			<content type="html"><![CDATA[<p><strong>kestler</strong><br />Значит SSI вообще не работает.</p><p>Проверьте, чтобы каталог test.ru/www не содержал .htaccess файл с директивой отключения SSI:<br />Options -Includes</p><p>Блок виртуального хоста тоже не должен иметь такой отключающей директивы.</p><p>В httpd.conf, блок корневой директории должен&nbsp; выглядеть так:<br />&lt;Directory /&gt;<br />&nbsp; &nbsp; Options Includes Indexes FollowSymLinks<br />&nbsp; &nbsp; AllowOverride All<br />&nbsp; &nbsp; Allow from all<br />&lt;/Directory&gt;</p><p>Блок &lt;IfModule mime_module&gt; должен содержать данные две строки:<br />AddType text/html .shtml<br />AddOutputFilter INCLUDES .shtml</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2008-11-12T12:38:43Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6181#p6181</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6178#p6178" />
			<content type="html"><![CDATA[<p>Постараюсь объяснить.</p><p><strong>В&nbsp; &quot;C:\apache\test\www&quot; <em>(test.ru - виртуальный хост)</em> созданы два файла с командой SSI:</strong><br /><strong>index.shtml</strong><br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;!--#include file=&quot;content.html&quot;--&gt;<br />&lt;br&gt;<br />А должно быть!!!<br />&lt;/body&gt;<br />&lt;/html&gt; </p><p><strong>content.html</strong><br />&lt;h1&gt;Работает!&lt;/h1&gt;</p><p><strong>В браузере, по адресу <a href="http://www.test.ru/,">http://www.test.ru/,</a> получаю только одну строку</strong><br />А должно быть!!!</p><p><strong>т.е. команда SSI &quot;include file&quot; не выполняется?</strong></p><p><em>Dreamweaver не причастен к этому. Выключен. Ранее он несколько путал, сам выполнял команду &quot;include file&quot;.</em></p>]]></content>
			<author>
				<name><![CDATA[kestler]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1591</uri>
			</author>
			<updated>2008-11-12T06:19:15Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6178#p6178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6173#p6173" />
			<content type="html"><![CDATA[<p><strong>kestler</strong><br />Не понял что вы написали.<br />К сожалению, по Dreamweaver помочь не смогу.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2008-11-11T17:59:41Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6173#p6173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6169#p6169" />
			<content type="html"><![CDATA[<p>Проверил, когда и как перестает выполняться команда SSI. <br />Выполняет команду Dreamweaver CS3, без включения сервера (&gt;просмотр и отладка в браузере).</p><p>Через браузер (<a href="http://127.0.0.1/test/www/index.shtml">http://127.0.0.1/test/www/index.shtml</a>), при включенном сервере отображается пустая страница.</p>]]></content>
			<author>
				<name><![CDATA[kestler]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1591</uri>
			</author>
			<updated>2008-11-11T14:14:56Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6169#p6169</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6166#p6166" />
			<content type="html"><![CDATA[<p><strong>kestler</strong><br />Если работает include, то и другие директивы в файле .shtml будут работать.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2008-11-11T13:00:58Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6166#p6166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Тестирование SSI на локальном сервере Apache]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6163#p6163" />
			<content type="html"><![CDATA[<p><strong>Сайт с командами SSI. </strong><br />Тестируется на локальном сервере. Установил Apache+PHP+MySQL+phpMyAdmin по статье &quot;Инструментарий веб-разработчика&quot;.</p><p><strong>Выполняются команды на включение в страницу .shtml других документов, например:</strong><br />&lt;!--#include file=&quot;content.html&quot;--&gt;</p><p><strong>Но, не выполняются команды с переменными SSI, например:</strong><br />&lt;!--#config timefmt=&quot;Дата: %d-%m-%y, время: %T&quot;--&gt;<br />&lt;!--#flastmod file=&quot;gtm.css&quot;--&gt; <br /><strong>Выводится в браузере пустая страница.</strong></p><p><strong>или</strong></p><p>&lt;!--#set var=&quot;title&quot; value=&quot;Что такое SSI?&quot;--&gt;<br />&lt;title&gt;&lt;!--#echo var=&quot;title&quot;--&gt;&lt;/title&gt;<br />Выводится Title - &lt;!--#echo var=&quot;title&quot;--&gt;. </p><p><strong>Apache не принимает команды SSI с переменными?<br />Как исправить?</strong></p>]]></content>
			<author>
				<name><![CDATA[kestler]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1591</uri>
			</author>
			<updated>2008-11-11T09:48:43Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6163#p6163</id>
		</entry>
</feed>
