Проблема такая, сколько пытался настроить хранение сессий, никогда не получалось. Все делал по этой () инструкции и как результат сайт падает, Сервер не может обработать запрос.
Меняю секцию session на предложенные в уроке и не работает. Может подскажете, как конкретно нужно подправить конфиг, чтобы заработало?
Нужно настроить хранение, либо в БД либо в memcache.
.settings.php
Меняю секцию session на предложенные в уроке и не работает. Может подскажете, как конкретно нужно подправить конфиг, чтобы заработало?
Нужно настроить хранение, либо в БД либо в memcache.
.settings.php
| Код |
|---|
<?php return array ( 'pull_s1' => 'BEGIN GENERATED PUSH SETTINGS. DON\'T DELETE COMMENT!!!!', 'pull' => Array( 'value' => array( 'path_to_listener' => 'http://#DOMAIN#/bitrix/sub/', 'path_to_listener_secure' => 'https://#DOMAIN#/bitrix/sub/', 'path_to_modern_listener' => 'http://#DOMAIN#/bitrix/sub/', 'path_to_modern_listener_secure' => 'https://#DOMAIN#/bitrix/sub/', 'path_to_mobile_listener' => 'http://#DOMAIN#:8893/bitrix/sub/', 'path_to_mobile_listener_secure' => 'https://#DOMAIN#:8894/bitrix/sub/', 'path_to_websocket' => 'ws://#DOMAIN#/bitrix/subws/', 'path_to_websocket_secure' => 'wss://#DOMAIN#/bitrix/subws/', 'path_to_publish' => 'http://ljjkwhigxw.local:8895/bitrix/pub/', 'path_to_publish_web' => 'http://#DOMAIN#/bitrix/rest/', 'path_to_publish_web_secure' => 'https://#DOMAIN#/bitrix/rest/', 'nginx_version' => '4', 'nginx_command_per_hit' => '100', 'nginx' => 'Y', 'nginx_headers' => 'N', 'push' => 'Y', 'websocket' => 'Y', 'signature_key' => '#####################################################################################################', 'signature_algo' => 'sha1', 'guest' => 'N', ), ), 'pull_e1' => 'END GENERATED PUSH SETTINGS. DON\'T DELETE COMMENT!!!!', 'session' => array ( 'value' => array ( 'mode' => 'default', ), 'readonly' => true, ), 'utf_mode' => array ( 'value' => true, 'readonly' => true, ), 'cache_flags' => array ( 'value' => array ( 'config_options' => 3600, 'site_domain' => 3600, ), 'readonly' => false, ), 'cookies' => array ( 'value' => array ( 'secure' => false, 'http_only' => true, ), 'readonly' => false, ), 'exception_handling' => array ( 'value' => array ( 'debug' => false, 'handled_errors_types' => 4437, 'exception_errors_types' => 4437, 'ignore_silence' => false, 'assertion_throws_exception' => true, 'assertion_error_type' => 256, # 'log' => NULL, 'log' => array ( 'settings' => array ( 'file' => 'bitrix/modules/error.log', 'log_size' => 1000000, ), ), ), 'readonly' => false, ), 'connections' => array ( 'value' => array ( 'default' => array ( 'className' => '\\Bitrix\\Main\\DB\\MysqliConnection', 'host' => '###.###.###', 'database' => 'default-db', 'login' => 'default-db', 'password' => '###########', 'options' => 2, ), ), 'readonly' => true, ), 'force_enable_self_hosted_composite' => array ( 'value' => true, 'readonly' => false, ), 'smtp' => array ( 'value' => array ( 'enabled' => true, 'debug' => true, 'log_file' => '/home/bitrix/ext_www/########.ru/bitrix/maillog_smtp.txt', ), 'readonly' => true, ), ); |