<?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>Установка altocms на домен с алиасами / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://79.174.14.219/comments/459/</link>
			<description><![CDATA[Добрый день, на днях решил немного поэкспериментировать с alto cms и установил версию 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>Установка altocms на домен с алиасами (comment #7385)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment7385</guid>
					<link>http://79.174.14.219/459.html#comment7385</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Ключевая проблема — куки. Движок в своей работе использует куки, и они должны быть правильно заданы. Наиболее распространенная ошибка: куки задаются для хоста с «www», а попытка авторизации идет с хоста без «www». Поэтому, как правило, рекомендуется определиться, какой домен будет для хоста главным.<br/>
<br/>
Чтоб работать на одном сайте под разными доменами, надо сделать так, чтоб куки писались под разными доменами. В принципе, можно попробовать в <strong>/app/config/config.local.php</strong> вместо строки<br/>
<pre class="prettyprint"><code>$config['path']['root']['url'] = 'http://site.com';</code></pre>записать<br/>
<pre class="prettyprint"><code>if (isset($_SERVER['HTTP_HOST'])) {
    $config['path']['root']['url'] = 'http://'. $_SERVER['HTTP_HOST'] . '/';
}</code></pre><br/>
Должно помочь]]></description>
					<pubDate>Sun, 12 Jan 2014 13:24:53 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #10818)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment10818</guid>
					<link>http://79.174.14.219/459.html#comment10818</link>
					<author>ukrainsky@uplab.ru</author>
					<description><![CDATA[Добрый день! помогите решить похожую проблему с Hacking attempt. На сайте перестала работать авторизация. После каких действий программиста или клиента это случилось выяснить не удается. Авторизация виснет. В браузере удалось найти вывод ошибки в ajax файле ajax-login Вот скрин <a href="http://joxi.ru/k86eUxjKTJBcH0Dtj0w" rel="nofollow" >joxi.ru/k86eUxjKTJBcH0Dtj0w</a><br/>
Комментарий выше не помог, в моем config.local.php нет такой переменной $config['path']['root']['url']<br/>
Спасибо!]]></description>
					<pubDate>Mon, 16 Jun 2014 15:05:12 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #10962)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment10962</guid>
					<link>http://79.174.14.219/459.html#comment10962</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Сообщение «Hacking attempt!» возвращается при ajax-запросе, если в передаваемых данных формы нет поля <strong>security_key</strong>]]></description>
					<pubDate>Fri, 20 Jun 2014 18:03:57 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15545)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15545</guid>
					<link>http://79.174.14.219/459.html#comment15545</link>
					<author>overpod@yandex.ru</author>
					<description><![CDATA[<blockquote>Чтоб работать на одном сайте под разными доменами, надо сделать так, чтоб куки писались под разными доменами. В принципе, можно попробовать в /app/config/config.local.php вместо строки<br/>
$config['path']['root']['url'] = 'http://site.com';<br/>
записать<br/>
if (isset($_SERVER['HTTP_HOST'])) {<br/>
$config['path']['root']['url'] = 'http://'. $_SERVER['HTTP_HOST']. '/';<br/>
}<br/>
<br/>
Должно помочь</blockquote><br/>
НЕ РАБОТАЕТ ПРОВЕРЕНО]]></description>
					<pubDate>Tue, 07 Oct 2014 10:09:07 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15553)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15553</guid>
					<link>http://79.174.14.219/459.html#comment15553</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[А что конкретно не работает? Вот этот сайт доступен, например, и по <a href="http://altocms.com/" rel="nofollow" >altocms.com/</a> и по <a href="http://altocms.ru/" rel="nofollow" >altocms.ru/</a> и я нормально авторизуюсь в обоих доменах]]></description>
					<pubDate>Tue, 07 Oct 2014 13:18:47 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15554)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15554</guid>
					<link>http://79.174.14.219/459.html#comment15554</link>
					<author>overpod@yandex.ru</author>
					<description><![CDATA[<a href="http://abuga.ru/" rel="nofollow" >abuga.ru/</a><br/>
регистрируемся<br/>
входим<br/>
делаем переход<br/>
на <br/>
<a href="http://www.abuga.ru" rel="nofollow" >www.abuga.ru</a><br/>
И всё регистрации нет!!!]]></description>
					<pubDate>Tue, 07 Oct 2014 13:21:50 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15555)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15555</guid>
					<link>http://79.174.14.219/459.html#comment15555</link>
					<author>overpod@yandex.ru</author>
					<description><![CDATA[только что поставил alto CMS]]></description>
					<pubDate>Tue, 07 Oct 2014 13:22:28 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15558)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15558</guid>
					<link>http://79.174.14.219/459.html#comment15558</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[А хост для кук вы указали так?<pre class="prettyprint"><code>$config['sys']['cookie']['host'] = '.abuga.ru';</code></pre>]]></description>
					<pubDate>Tue, 07 Oct 2014 14:12:24 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15557)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15557</guid>
					<link>http://79.174.14.219/459.html#comment15557</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[Все верно — два разных домена, регистрация будет работать на обоих, но независимо друг от друга, т.к. куки устанавливаются для разных доменов. Вы определитесь, какой домен будет главным и в .htaccess задайте нужный редирект. Например, так:<br/>
<pre class="prettyprint"><code>RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]</code></pre>Тогда все запросы с <a href="http://www.abuga.ru" rel="nofollow" >www.abuga.ru</a> будут автоматически перенаправляться на abuga.ru]]></description>
					<pubDate>Tue, 07 Oct 2014 14:12:06 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15559)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15559</guid>
					<link>http://79.174.14.219/459.html#comment15559</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[Не понял что речь идет о перенаправлении. Тогда можно и через nginx <pre class="prettyprint"><code>server {
    listen       80;
    server_name  www.abuga.ru;
    return       301 http://abuga.ru$request_uri;
}
</code></pre>]]></description>
					<pubDate>Tue, 07 Oct 2014 14:16:01 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15560)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15560</guid>
					<link>http://79.174.14.219/459.html#comment15560</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[А ну да, я все по старинке для апача указываю :)]]></description>
					<pubDate>Tue, 07 Oct 2014 14:38:04 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #15561)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment15561</guid>
					<link>http://79.174.14.219/459.html#comment15561</link>
					<author>overpod@yandex.ru</author>
					<description><![CDATA[щас проверю<br/>
у меня nginx]]></description>
					<pubDate>Tue, 07 Oct 2014 14:39:12 +0400</pubDate>
									</item>
							<item>
					<title>Установка altocms на домен с алиасами (comment #29101)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/459/#comment29101</guid>
					<link>http://79.174.14.219/459.html#comment29101</link>
					<author>ravkmgn@gmail.com</author>
					<description><![CDATA[Друзья, сегодня так же столкнулся с данной проблемой. К сожалению так и не смог решить предложенными способами. Кто-нибудь может помочь?]]></description>
					<pubDate>Wed, 31 May 2017 13:30:29 +0300</pubDate>
									</item>
					</channel>
	</rss>
