{"id":161,"date":"2012-07-04T18:28:13","date_gmt":"2012-07-04T12:28:13","guid":{"rendered":"http:\/\/alexeyka.zantsev.com\/?p=161"},"modified":"2012-07-17T23:05:53","modified_gmt":"2012-07-17T17:05:53","slug":"apache-tips-hints","status":"publish","type":"post","link":"https:\/\/alexeyka.zantsev.com\/?p=161","title":{"rendered":"Apache: tips &#038; hints"},"content":{"rendered":"<div>\n<p>\u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043b\u0435\u0442\u0435\u0442\u044c \u0438\u0437 \u0433\u043e\u043b\u043e\u0432\u044b, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u0430\u043b\u0430\u0437\u0438\u0448\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 Apache.<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p><strong>Alias <\/strong>(<a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_alias.html#alias\" target=\"_blank\">http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_alias.html#alias<\/a>). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432\u043d\u0435 DocumentRoot.<\/p>\n<blockquote><p><strong>Alias \/alexey \/home\/alexey\/pub_html<\/strong><br \/>\n&lt;Directory \/home\/alexey\/pub_html&gt;<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<\/p><\/blockquote>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p><strong>Options Indexes.<\/strong> Indexes &#8211; \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 Options (<a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/core.html#options\" target=\"_blank\">http:\/\/httpd.apache.org\/docs\/2.0\/mod\/core.html#options<\/a>). \u0421\u043c\u044b\u0441\u043b \u0435\u0435 \u0442\u0430\u043a\u043e\u0439: \u043a\u043e\u0433\u0434\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043d\u0435\u0442 \u0444\u0430\u0439\u043b\u0430, \u043e\u0442\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (index.html \u0438 \u0442.\u043f.), \u0438 \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e Options Indexes , \u0442\u043e\u0433\u0434\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u044b\u0434\u0430\u0441\u0442 \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0435\u0442 \u043d\u0438 index.html, \u043d\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 Options Indexes, \u0442\u043e\u0433\u0434\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 404 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e.<\/p>\n<blockquote><p>Alias \/alexey \/home\/alexey\/pub_html<br \/>\n&lt;Directory \/home\/alexey\/pub_html&gt;<br \/>\nOrder allow,deny<br \/>\nAllow from all<\/p>\n<p><strong>\u00a0\u00a0\u00a0 Options Indexes<\/strong><br \/>\n&lt;\/Directory&gt;<\/p><\/blockquote>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p><strong>server-status <\/strong>(<a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_status.html\" target=\"_blank\">http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_status.html<\/a>)<strong>.<\/strong> \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<blockquote><p><strong>&lt;Location \/server-status&gt;<\/strong><br \/>\n<strong>SetHandler server-status<\/strong><br \/>\nOrder Deny,Allow<br \/>\nDeny from all<br \/>\nAllow from 192.168.0.0\/24\u00a0127.0.0.1<br \/>\n&lt;\/Location&gt;<\/p><\/blockquote>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c (\u0435\u0441\u043b\u0438 \u043c\u044b \u0438\u0437 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 192.168.0.0\/24) \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0432\u043e\u0434\u043a\u0443 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <em>http:\/\/\u043d\u0430\u0448_\u0441\u0435\u0440\u0432\u0435\u0440\/server-status<\/em> . \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441 localhost\u2019a, \u0432 \u0442.\u0447. \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u2018<em>apachectl status<\/em>\u2019 .<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p><strong>Order<\/strong> &#8211; \u0437\u0430\u0434\u0430\u0451\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a &#8211; allow \u0438\u043b\u0438 deny. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043f\u043e <strong>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443<\/strong> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0443. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e:<\/p>\n<blockquote><p>Order Allow,Deny<\/p><\/blockquote>\n<p>\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0440\u0435\u0449\u0451\u043d. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e:<\/p>\n<blockquote><p>Order Allow,Deny<\/p>\n<p>Allow from all<\/p><\/blockquote>\n<p>\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0443\u0434\u0435\u0442 \u0440\u0437\u0440\u0435\u0448\u0435\u043d \u0432\u0441\u0435\u043c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e:<\/p>\n<blockquote><p>Order Allow,Deny<\/p>\n<p>Allow from 10.4.1.0\/24<\/p><\/blockquote>\n<p>\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0441\u0435\u0442\u0438 10.4.1.0\/24.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043b\u0435\u0442\u0435\u0442\u044c \u0438\u0437 \u0433\u043e\u043b\u043e\u0432\u044b, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u0430\u043b\u0430\u0437\u0438\u0448\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 Apache. \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 Alias (http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_alias.html#alias). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0430\u043b\u0438\u0430\u0441 \u0434\u043b\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432\u043d\u0435 DocumentRoot. Alias \/alexey \/home\/alexey\/pub_html &lt;Directory \/home\/alexey\/pub_html&gt; Order allow,deny Allow from all &lt;\/Directory&gt; \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 Options Indexes. Indexes &#8211; \u043e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 Options (http:\/\/httpd.apache.org\/docs\/2.0\/mod\/core.html#options). \u0421\u043c\u044b\u0441\u043b \u0435\u0435 \u0442\u0430\u043a\u043e\u0439: \u043a\u043e\u0433\u0434\u0430 \u0432 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[65,66],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-apache","tag-httpd"],"_links":{"self":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":4,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":203,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/203"}],"wp:attachment":[{"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexeyka.zantsev.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}