{
    "version": "https:\/\/jsonfeed.org\/version\/1",
    "title": "Блог: заметки с тегом эгея",
    "_rss_description": "konditerov.ru",
    "_rss_language": "ru",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/www.utata.ru\/tags\/egeya\/",
    "feed_url": "https:\/\/www.utata.ru\/tags\/egeya\/json\/",
    "icon": "https:\/\/www.utata.ru\/user\/userpic@2x.jpg?1641662784",
    "author": {
        "name": "Илья Кондитеров",
        "url": "https:\/\/www.utata.ru\/",
        "avatar": "https:\/\/www.utata.ru\/user\/userpic@2x.jpg?1641662784"
    },
    "items": [
        {
            "id": "78",
            "url": "https:\/\/www.utata.ru\/all\/konfig-nginx-egeya-for-vestacp\/",
            "title": "Конфиг nginx Эгея for vestacp",
            "content_html": "<p>Настройка <a href=\"https:\/\/blogengine.ru\">Эгеи<\/a> под <a href=\"https:\/\/vestacp.com\">VestaCP<\/a> (nginx)<\/p>\n<p>В папку с правами 644 пользователь root:<br \/>\n<b>nginx + php-fpm<\/b><br \/>\n\/usr\/local\/vesta\/data\/templates\/web\/nginx\/php-fpm5<\/p>\n<p><b>egea.tpl<\/b><\/p>\n<pre class=\"e2-text-code\"><code class=\"\">server {\r\n    http2      on;\r\n    listen      %ip%:%web_port%;\r\n    server_name %domain_idn% %alias_idn%;\r\n    root        %docroot%;\r\n    index       index.php index.html index.htm;\r\n    access_log  \/var\/log\/nginx\/domains\/%domain%.log combined;\r\n    access_log  \/var\/log\/nginx\/domains\/%domain%.bytes bytes;\r\n    error_log   \/var\/log\/nginx\/domains\/%domain%.error.log error;\r\n#   if you need to rewrite www to non-www uncomment bellow\r\n#   if ($host != '%domain%' ) {\r\n#       rewrite      ^\/(.*)$  http:\/\/%domain%\/$1  permanent;\r\n#    }\r\n    location = \/favicon.ico {\r\n        log_not_found off;\r\n        access_log off;\r\n    }\r\n\r\n    location = \/robots.txt {\r\n        allow all;\r\n        log_not_found off;\r\n        access_log off;\r\n    }\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ @rewrite;\r\n        location ~* ^.+\\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {\r\n            expires     max;\r\n        }\r\n    }\r\n    location @rewrite {\r\n        rewrite ^\/(.*)$ \/index.php?go=$uri;\r\n    }\r\n\r\n    location ~ \\.php$ {\r\n        try_files $uri =404;\r\n        fastcgi_pass %backend_lsnr%;\r\n        fastcgi_index index.php;\r\n        fastcgi_param SCRIPT_FILENAME $request_filename;\r\n        include \/etc\/nginx\/fastcgi_params;\r\n    }\r\n\r\n    error_page  403 \/error\/404.html;\r\n    error_page  404 \/error\/404.html;\r\n    error_page  500 502 503 504 \/error\/50x.html;\r\n\r\n    location \/error\/ {\r\n        alias   %home%\/%user%\/web\/%domain%\/document_errors\/;\r\n    }\r\n\r\n    location ~* &quot;\/\\.(htaccess|htpasswd)$&quot; {\r\n        deny    all;\r\n        return  404;\r\n    }\r\n\r\n    location \/vstats\/ {\r\n        alias   %home%\/%user%\/web\/%domain%\/stats\/;\r\n        include %home%\/%user%\/conf\/web\/%domain%.auth*;\r\n    }\r\n\r\n    include     \/etc\/nginx\/conf.d\/phpmyadmin.inc*;\r\n    include     \/etc\/nginx\/conf.d\/phppgadmin.inc*;\r\n    include     \/etc\/nginx\/conf.d\/webmail.inc*;\r\n\r\n    include     %home%\/%user%\/conf\/web\/nginx.%domain%.conf*;\r\n}<\/code><\/pre><p>и файл<br \/>\n<b>egea.stpl<\/b><\/p>\n<pre class=\"e2-text-code\"><code class=\"\">server {\r\n    http2      on;\r\n    listen      %ip%:%web_ssl_port% ssl\r\n    server_name %domain_idn% %alias_idn%;\r\n    root        %sdocroot%;\r\n    index       index.php index.html index.htm;\r\n    access_log  \/var\/log\/nginx\/domains\/%domain%.log combined;\r\n    access_log  \/var\/log\/nginx\/domains\/%domain%.bytes bytes;\r\n    error_log   \/var\/log\/nginx\/domains\/%domain%.error.log error;\r\n\r\n    ssl_certificate      %ssl_pem%;\r\n    ssl_certificate_key  %ssl_key%;\r\n#   if you need to rewrite www to non-www uncomment bellow\r\n#   if ($host != '%domain%' ) {\r\n#       rewrite      ^\/(.*)$  https:\/\/%domain%\/$1  permanent;\r\n#    }\r\n    location = \/favicon.ico {\r\n        log_not_found off;\r\n        access_log off;\r\n    }\r\n\r\n    location = \/robots.txt {\r\n        allow all;\r\n        log_not_found off;\r\n        access_log off;\r\n    }\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ @rewrite;\r\n        location ~* ^.+\\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {\r\n            expires     max;\r\n        }\r\n    }\r\n    location @rewrite {\r\n        rewrite ^\/(.*)$ \/index.php?go=$uri;\r\n    }\r\n\r\n    location ~ \\.php$ {\r\n        try_files $uri =404;\r\n        fastcgi_pass %backend_lsnr%;\r\n        fastcgi_index index.php;\r\n        fastcgi_param SCRIPT_FILENAME $request_filename;\r\n        include \/etc\/nginx\/fastcgi_params;\r\n    }\r\n\r\n    error_page  403 \/error\/404.html;\r\n    error_page  404 \/error\/404.html;\r\n    error_page  500 502 503 504 \/error\/50x.html;\r\n\r\n    location \/error\/ {\r\n        alias   %home%\/%user%\/web\/%domain%\/document_errors\/;\r\n    }\r\n\r\n    location ~* &quot;\/\\.(htaccess|htpasswd)$&quot; {\r\n        deny    all;\r\n        return  404;\r\n    }\r\n\r\n    location \/vstats\/ {\r\n        alias   %home%\/%user%\/web\/%domain%\/stats\/;\r\n        include %home%\/%user%\/conf\/web\/%domain%.auth*;\r\n    }\r\n\r\n    include     \/etc\/nginx\/conf.d\/phpmyadmin.inc*;\r\n    include     \/etc\/nginx\/conf.d\/phppgadmin.inc*;\r\n    include     \/etc\/nginx\/conf.d\/webmail.inc*;\r\n\r\n    include     %home%\/%user%\/conf\/web\/snginx.%domain%.conf*;\r\n}<\/code><\/pre><p>потом выбираем Web Template NGINX — <b>egea<\/b> и пользуемся<\/p>\n<div class=\"e2-text-picture\">\n<img src=\"https:\/\/www.utata.ru\/pictures\/--2018-10-09--0.38.32.png\" width=\"512\" height=\"220\" alt=\"\" \/>\n<\/div>\n<div class=\"e2-text-picture\">\n<img src=\"https:\/\/www.utata.ru\/pictures\/--2018-10-09--0.38.26.png\" width=\"448\" height=\"176\" alt=\"\" \/>\n<\/div>\n",
            "date_published": "2018-10-09T00:38:04+03:00",
            "date_modified": "2024-04-12T18:26:49+03:00",
            "image": "https:\/\/www.utata.ru\/pictures\/--2018-10-09--0.38.32.png",
            "_date_published_rfc2822": "Tue, 09 Oct 2018 00:38:04 +0300",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "78",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "system\/library\/highlight\/highlight.js",
                    "system\/library\/highlight\/highlight.css"
                ],
                "og_images": [
                    "https:\/\/www.utata.ru\/pictures\/--2018-10-09--0.38.32.png",
                    "https:\/\/www.utata.ru\/pictures\/--2018-10-09--0.38.26.png"
                ]
            }
        },
        {
            "id": "28",
            "url": "https:\/\/www.utata.ru\/all\/pereadresaciya-egeya-s-http-na-https\/",
            "title": "Переадресация эгея с http на https",
            "content_html": "<p><b>\/system\/core.php<\/b><br \/>\nКомментируем<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">if($_SERVER['SERVER_PORT']!=&lt;часть кода удалена&gt;. $_SERVER['SERVER_PORT'];<\/code><\/pre><p>Открываем файл <b>.htaccess<\/b> и после<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">RewriteEngine on<\/code><\/pre><p>Добавляем две строки:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">RewriteCond %{HTTP:X-Forwarded-Proto} !https\r\nRewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]<\/code><\/pre><p><b>Чистим кэш<\/b><br \/>\nПосле дополнительно нужно очистить кэш, эту процедуру можно выполнить при помощи ввода адреса domain.ru\/@sync\/<\/p>\n<p>В итоге мы получаем автоматический 301 редирект на https с любой страницы сайта, с приставкой https.<\/p>\n",
            "date_published": "2017-01-31T23:53:45+03:00",
            "date_modified": "2017-01-31T23:53:28+03:00",
            "_date_published_rfc2822": "Tue, 31 Jan 2017 23:53:45 +0300",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "28",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "system\/library\/highlight\/highlight.js",
                    "system\/library\/highlight\/highlight.css"
                ],
                "og_images": []
            }
        }
    ],
    "_e2_version": 3877,
    "_e2_ua_string": "E2 (v3877; Aegea)"
}