<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Установка в подкаталог / Блог им. viktorz / Alto CMS</title>
			<link>http://79.174.14.219/comments/572/</link>
			<description><![CDATA[Уже поднимались подобные темы, но у меня несколько иная ситуация. Имеем nginx+php-fpm, livestreet 1.0.3 (позже будет ясно зачем), alto 0.9.7.1.]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Установка в подкаталог (comment #9542)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9542</guid>
					<link>http://79.174.14.219/572.html#comment9542</link>
					<author>viktorz1986@gmail.com</author>
					<description><![CDATA[кое с чем разобрался. Нужно в config.local.php обязательно задавать параметры path.root.web равный полному пути. Теперь картинки загружаются и css,js подключаются. Но только на главной, при переходе на любую другую страницу выдается окошечко с предложением скачать файл.]]></description>
					<pubDate>Wed, 16 Apr 2014 15:03:01 +0400</pubDate>
									</item>
							<item>
					<title>Установка в подкаталог (comment #9543)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9543</guid>
					<link>http://79.174.14.219/572.html#comment9543</link>
					<author>viktorz1986@gmail.com</author>
					<description><![CDATA[Победил.<br/>
<br/>
вот так работает и для alto и для livestreet. Установка идет в поддиректорию вида /domains/число/. <br/>
<br/>
<pre class="prettyprint"><code>location ~ /domains/([0-9]+) {
    root /var/www/site.ru;
    try_files $uri $uri/ /domains/$1/index.php$is_args$args;

    location ~ \.php$ {
        internal;
        include        /etc/nginx/fastcgi_params;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_pass   127.0.0.1:9000;
    }
}</code></pre>]]></description>
					<pubDate>Wed, 16 Apr 2014 15:20:19 +0400</pubDate>
									</item>
							<item>
					<title>Установка в подкаталог (comment #9551)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9551</guid>
					<link>http://79.174.14.219/572.html#comment9551</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Хотелось бы уточнить — так все решилось настройками nginx?]]></description>
					<pubDate>Thu, 17 Apr 2014 00:07:33 +0400</pubDate>
									</item>
							<item>
					<title>Установка в подкаталог (comment #9553)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9553</guid>
					<link>http://79.174.14.219/572.html#comment9553</link>
					<author>viktorz1986@gmail.com</author>
					<description><![CDATA[нет. Настройки nginx привел для доп. информации, может кому-то будет полезно.<br/>
Проблема решилась настройками config.local.php<br/>
<br/>
В config.php есть такие строки<br/>
<br/>
<pre class="prettyprint"><code>if (isset($_SERVER['HTTP_HOST'])) {
$config['path']['root']['url'] = 'http://'. $_SERVER['HTTP_HOST']. '/'; // полный WEB адрес сайта
} else {
// for CLI scripts. or you can append «HTTP_HOST=http://yoursite.url» before script run command
$config['path']['root']['url'] = null;
}
</code></pre><br/>
блаблабла<br/>
<pre class="prettyprint"><code>
/**
* Следующие параметры определяем для совместимости с LS
* LS-compatible
*/
$config['path']['root']['web'] = '___path.root.url___'; // Определяем для совместимости с LS
$config['path']['root']['server'] = '___path.root.dir___'; // Определяем для совместимости с LS
</code></pre><br/>
<br/>
В моем случае в config.local я задал <br/>
<pre class="prettyprint"><code>$config['path']['root']['url'] = 'http://site.ru/domains/число/';
$config['path']['root']['web'] = 'http://site.ru/domains/число/';
$config['path']['root']['server'] = путь до корня alto в файловой системе.
$config['path']['offset_request_url'] = 2;</code></pre><br/>
<br/>
и все заработало так как надо. <br/>
<br/>
Вывод: настройки конфига nginx для работы alto и livestreet одиннаковые. Разница есть в настройках config.local в alto при установке в поддиректорию. Нужно задавать след. параметры<br/>
$config['path']['root']['url']<br/>
$config['path']['root']['server']<br/>
<br/>
Может быть все это характерно для меня одного, а может быть и нет и будет кому-то полезно.]]></description>
					<pubDate>Thu, 17 Apr 2014 07:28:51 +0400</pubDate>
									</item>
							<item>
					<title>Установка в подкаталог (comment #9555)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9555</guid>
					<link>http://79.174.14.219/572.html#comment9555</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Небольшое уточнение — для Альто должно быть достаточно задать такие параметры:<br/>
<pre class="prettyprint"><code>$config['path']['root']['url'] = '...';
$config['path']['root']['dir'] = '...';</code></pre>]]></description>
					<pubDate>Thu, 17 Apr 2014 10:58:36 +0400</pubDate>
									</item>
							<item>
					<title>Установка в подкаталог (comment #9592)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/572/#comment9592</guid>
					<link>http://79.174.14.219/572.html#comment9592</link>
					<author>ametmastaba@gmail.com</author>
					<description><![CDATA[как вариант проверьте .htaccess, который у LS и который у Alto;<br/>
деталей сейчас не вспомню, но в сходной ситуации помогало.]]></description>
					<pubDate>Sun, 20 Apr 2014 14:39:53 +0400</pubDate>
									</item>
					</channel>
	</rss>
