{"id":1179,"date":"2020-11-03T12:46:45","date_gmt":"2020-11-03T06:46:45","guid":{"rendered":"https:\/\/goodhost.kz\/wiki\/?p=1179"},"modified":"2023-09-22T11:53:57","modified_gmt":"2023-09-22T05:53:57","slug":"%d0%ba%d0%b0%d0%ba-%d1%83%d1%81%d0%ba%d0%be%d1%80%d0%b8%d1%82%d1%8c-%d1%81%d0%b0%d0%b9%d1%82-%d0%bd%d0%b0-bitrix-%d0%bf%d0%be%d1%81%d1%80%d0%b5%d0%b4%d1%81%d1%82%d0%b2%d0%be%d0%bc","status":"publish","type":"post","link":"https:\/\/goodhost.kz\/wiki\/?p=1179","title":{"rendered":"\u041a\u0430\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u043d\u0430 Bitrix \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c FastCGI"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043a\u0430\u043a APACHE, CGI \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435\u0436\u0435\u043b\u0438 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 NGINX \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 FastCGI (Nginx + PHP-FPM).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"has-inline-color has-vivid-red-color\">\u041f\u0435\u0440\u0435\u0434 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e !<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u043b\u044f Bitrix \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 ISPmanager <strong>(\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0436\u0438\u0440\u043d\u044b\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0438)<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">server {\nserver_name <strong>mydomain.kz www.mydomain.kz<\/strong>;\nreturn 301 https:\/\/$server_name$request_uri;\ncharset off;\nindex index.php index.html;\nadd_header X-Frame-Options SAMEORIGIN;\nlocation ^~ \/bitrix\/modules {\ndeny all;\n}\nadd_header X-Content-Type-Options nosniff;\ndisable_symlinks if_not_owner from=$root_path;\ninclude <strong>\/etc\/nginx\/vhosts-includes\/.conf; include \/etc\/nginx\/vhosts-resources\/mydomain.kz\/.conf<\/strong>;\naccess_log <strong>\/var\/www\/httpd-logs\/mydomain.kz.access.log<\/strong>;\nerror_log <strong>\/var\/www\/httpd-logs\/mydomain.kz.error.log<\/strong> notice;\nssi on;\nreturn 301 https:\/\/$host:443$request_uri;\nset $root_path <strong>\/var\/www\/mydomainkz\/data\/www\/mydomain.kz<\/strong>;\nroot $root_path;\ngzip on;\ngzip_comp_level 7;\ngzip_disable \"msie6\";\ngzip_types text\/plain text\/css application\/json application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript application\/javascript;\nlocation \/ {\nlocation ~ [^\/].ph(p\\d|tml)$ { try_files \/does_not_exists @php; } location ~ ^.+.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {\nexpires 7d;\n}\n}\nlocation @php {\nfastcgi_index index.php;\nfastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f <strong>webmaster@mydomain.kz<\/strong>\";\nfastcgi_pass unix:<strong>\/var\/www\/php-fpm\/mydomainkz.sock<\/strong>;\nfastcgi_split_path_info ^((?U).+.ph(?:p\\d|tml))(\/?.+)$; try_files $uri =404; include fastcgi_params; } listen <strong>178.89.187.55<\/strong>:80; } server { ssi on; gzip on; gzip_comp_level 7; gzip_disable \"msie6\"; gzip_types text\/plain text\/css application\/json application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript application\/javascript; server_name <strong>mydomain.kz www.mydomain.kz<\/strong>; ssl_certificate \"<strong>\/var\/www\/httpd-cert\/mydomainkz\/mydomain.kz_le5.crtca<\/strong>\"; ssl_certificate_key \"<strong>\/var\/www\/httpd-cert\/mydomainkz\/mydomain.kz_le5.key<\/strong>\"; ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; add_header Strict-Transport-Security \"max-age=31536000;\"; ssl_dhparam \/etc\/ssl\/certs\/dhparam4096.pem; charset off; #disable_symlinks if_not_owner from=$root_path; add_header X-Frame-Options SAMEORIGIN; location ^~ \/bitrix\/modules { deny all; } add_header X-Content-Type-Options nosniff; index index.php index.html; root $root_path; set $root_path <strong>\/var\/www\/mydomainkz\/data\/www\/mydomain.kz<\/strong>; set $php_sock unix:<strong>\/var\/www\/php-fpm\/mydomainkz.sock<\/strong>; access_log <strong>\/var\/www\/httpd-logs\/mydomain.kz.access.log<\/strong>; error_log <strong>\/var\/www\/httpd-logs\/mydomain.kz.error.log<\/strong> notice; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; client_max_body_size 1024M; client_body_buffer_size 4M; if ($host = '<strong>www.mydomain.kz<\/strong>' ) { rewrite ^(.)$ <strong>https:\/\/mydomain.kz<\/strong>$1 permanent;\n}\nlocation \/ {\ntry_files $uri $uri\/ @bitrix;\nlocation ~ [^\/].ph(p\\d|tml)$ { try_files \/does_not_exists @php; } location ~ ^.+.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {\nexpires 7d;\n}\n}\nlocation ~* \/upload\/..(php|php3|php4|php5|php6|phtml|pl|asp|aspx|cgi|dll|exe|shtm|shtml|fcg|fcgi|fpl|asmx|pht|py|psp|rb|var)$ { types { text\/plain text\/plain php php3 php4 php5 php6 phtml pl asp aspx cgi dll exe ico shtm shtml fcg fcgi fpl asmx pht py psp rb var; } } location ~ .php$ { try_files $uri @bitrix; fastcgi_pass $php_sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f admin@mydomain.kz\"; include fastcgi_params; } location @bitrix { fastcgi_pass $php_sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root\/bitrix\/urlrewrite.php; fastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f <strong>admin@mydomain.kz<\/strong>\"; } location ~ \/bitrix\/admin.+.php$ {\ntry_files $uri @bitrixadm;\nfastcgi_pass $php_sock;\nfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\nfastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f <strong>admin@mydomain.kz<\/strong>\";\ninclude fastcgi_params;\n}\nlocation @bitrixadm{\nfastcgi_pass $php_sock;\ninclude fastcgi_params;\nfastcgi_param SCRIPT_FILENAME $document_root\/bitrix\/admin\/404.php;\nfastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f <strong>admin@mydomain.kz<\/strong>\";\n}\nlocation = \/favicon.ico {\nlog_not_found off;\naccess_log off;\n}\nlocation = \/robots.txt {\nallow all;\nlog_not_found off;\naccess_log off;\n}\n#\nblock this locations for any installation\n#\nht(passwd|access)\nlocation ~* \/.ht { deny all; }\nrepositories\nlocation ~* \/.(svn|hg|git) { deny all; }\nbitrix internal locations\nlocation ~* ^\/bitrix\/(modules|local_cache|stack_cache|managed_cache|php_interface) {\ndeny all;\n}\nupload files\nlocation ~* ^\/upload\/1c_[^\/]+\/ { deny all; }\nuse the file system to access files outside the site (cache)\nlocation ~* \/..\/ { deny all; }\nlocation ~* ^\/bitrix\/html_pages\/.config.php { deny all; }\nlocation ~* ^\/bitrix\/html_pages\/.enabled { deny all; }\nIntenal locations\nlocation ^~ \/upload\/support\/not_image { internal; }\nCache location: composite and general site\nlocation ~* @..html$ { internal; # disable browser cache, php manage file expires -1y; add_header X-Bitrix-Composite \"Nginx (file)\"; } # Player options, disable no-sniff location ~ ^\/bitrix\/components\/bitrix\/player\/mediaplayer\/player$ {\nadd_header Access-Control-Allow-Origin ; } # Accept access for merged css and js location ~ ^\/bitrix\/cache\/(css\/.+.css|js\/.+.js)$ {\nexpires 30d;\nerror_page 404 \/404.html;\n}\nDisable access for other assets in cache location\nlocation ~* ^\/bitrix\/cache { deny all; }\nUse nginx to return static content from s3 cloud storage\n\/upload\/bx_cloud_upload\/\u2026amazonaws.com\/\nlocation ^~ \/upload\/bx_cloud_upload\/ {\nlocation ~ ^\/upload\/bx_cloud_upload\/(http[s]?).([^\/:]+).(s3|s3-us-west-1|s3-eu-west-1|s3-ap-southeast-1|s3-ap-northeast-1).amazonaws.com\/(.+)$ {\ninternal;\nresolver 8.8.8.8;\nproxy_method GET;\nproxy_set_header X-Real-IP $remote_addr;\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\nproxy_set_header X-Forwarded-Server $host;\nproxy_max_temp_file_size 0;\nproxy_pass $1:\/\/$2.$3.amazonaws.com\/$4;\n}\nlocation ~* .$ { deny all; } } # Static content location ~ ^\/(upload|bitrix\/images|bitrix\/tmp) {\nexpires 30d;\n}\nlocation ~* .(css|js|gif|png|jpg|jpeg|ico|ogg|ttf|woff|eot|otf)$ {\nerror_page 404 \/404.html;\nexpires 30d;\n}\nlocation = \/404.html {\naccess_log off ;\n}\ndisable_symlinks if_not_owner from=$root_path;\ninclude <strong>\/etc\/nginx\/vhosts-includes\/.conf; include \/etc\/nginx\/vhosts-resources\/mydomain.kz\/.conf<\/strong>;\nlocation @php {\nfastcgi_index index.php;\nfastcgi_param PHP_ADMIN_VALUE \"sendmail_path = \/usr\/sbin\/sendmail -t -i -f <strong>webmaster@mydomain.kz<\/strong>\";\nfastcgi_pass unix:<strong>\/var\/www\/php-fpm\/mydomainkz.sock<\/strong>;\nfastcgi_split_path_info ^((?U).+.ph(?:p\\d*|tml))(\/?.+)$;\ntry_files $uri =404;\ninclude fastcgi_params;\n}\nlisten <strong>178.89.187.55<\/strong>:443 ssl http2;\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Bitrix:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0411\u044b\u043b\u043e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"464\" height=\"143\" src=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot644.png\" alt=\"\" class=\"wp-image-1186\" srcset=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot644.png 464w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot644-300x92.png 300w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot644-150x46.png 150w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u0442\u0430\u043b\u043e<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot643.png\" alt=\"\" class=\"wp-image-1187\" width=\"465\" height=\"146\" srcset=\"https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot643.png 473w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot643-300x95.png 300w, https:\/\/goodhost.kz\/wiki\/wp-content\/uploads\/2020\/11\/Screenshot643-150x47.png 150w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043a\u0430\u043a APACHE, CGI \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435\u0436\u0435\u043b\u0438 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 NGINX \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 FastCGI (Nginx + PHP-FPM). \u041f\u0435\u0440\u0435\u0434 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e ! \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0434\u043b\u044f Bitrix \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 ISPmanager (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0436\u0438\u0440\u043d\u044b\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0438). server { server_name mydomain.kz www.mydomain.kz; ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/goodhost.kz\/wiki\/?p=1179\" title=\"\u0447\u0438\u0442\u0430\u0442\u044c...\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,18],"tags":[],"class_list":["post-1179","post","type-post","status-publish","format-standard","hentry","category---ispmanager-ssd","category-n-"],"_links":{"self":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1179"}],"version-history":[{"count":10,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1179\/revisions"}],"predecessor-version":[{"id":1522,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/1179\/revisions\/1522"}],"wp:attachment":[{"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goodhost.kz\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}