{"id":83142,"date":"2020-05-29T01:41:57","date_gmt":"2020-05-28T23:41:57","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera"},"modified":"2020-05-29T01:41:57","modified_gmt":"2020-05-28T23:41:57","slug":"servis-proverki-http-zagolovkov-servera","status":"publish","type":"post","link":"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","title":{"rendered":"HTTP galvenes p\u0101rbaudes pakalpojums server\u012b","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Jebkuram vietn\u0113 ir svar\u012bgi pareizi konfigur\u0113t HTTP galvenes. Par galven\u0113m ir uzrakst\u012bts daudz rakstu. \u0160eit m\u0113s esam apkopoju\u0161i uzkr\u0101to pieredzi, RFC dokument\u0101ciju. Da\u017eas no galven\u0113m ir oblig\u0101tas, da\u017eas novecoju\u0161as, bet da\u017eas var rad\u012bt neskaidr\u012bbas un pretrunas. M\u0113s izveidoj\u0101m r\u012bku <noindex><a rel=\"nofollow\" href=\"https:\/\/http.itsoft.ru\">autom\u0101tiskai HTTP galvenu p\u0101rbaudei t\u012bmek\u013ca serverim<\/a><\/noindex>. At\u0161\u0137ir\u012bb\u0101 no daudziem citiem pakalpojumiem, kas vienk\u0101r\u0161i r\u0101da galvenes, \u0161is pakalpojums \u013cauj:<\/p>\n<ol>\n<li>noteikt tipisko galvenu v\u0113rt\u012bbas;<\/li>\n<li>pievienot savas piel\u0101got\u0101s galvenes;<\/li>\n<li>nor\u0101d\u012bt HTTP protokola versiju: 1.0, 1.1, 2 (p\u0101rbauda, vai tiek atbalst\u012bts HTTP\/2);<\/li>\n<li>nor\u0101d\u012bt piepras\u012bjuma metodi, gaid\u012b\u0161anas laiku un postdata datus, ko nos\u016bt\u012bt serverim;<\/li>\n<li>t\u0101pat r\u012bks p\u0101rbauda atbilsto\u0161u atbildi uz piepras\u012bjumiem If-Modified-Since, If-None-Match, ja servera atbild\u0113 ir Last-Modified vai ETag.<\/li>\n<\/ol>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nNepiecie\u0161ams piez\u012bm\u0113t, ka m\u0113s nepretend\u0113jam uz paties\u012bbu p\u0113d\u0113j\u0101 instanc\u0113. Noteiktam saturam un konkr\u0113tiem projektiem, protams, var b\u016bt novirzes. Ta\u010du \u0161is pakalpojums noteikti nor\u0101d\u012bs, uz ko j\u0101piev\u0113r\u0161 uzman\u012bba, iesp\u0113jams, j\u016bs v\u0113l\u0113sieties redi\u0123\u0113t savas galvenes. T\u0101l\u0101k sniegts saraksts ar to, uz ko piev\u0113r\u0161 uzman\u012bbu p\u0101rbaudes pakalpojums. K\u0101p\u0113c t\u0101, lasiet <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/search\/?q=%D0%B7%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BA%D0%B8#h\">rakstos Habr\u0101<\/a><\/noindex>.<\/p>\n<h2>Oblig\u0101t\u0101s galvenes<\/h2>\n<p><\/p>\n<ul>\n<li>Date<\/li>\n<li>Content-Type ar charset nor\u0101d\u012bjumu tekstu saturam v\u0113lams utf-8<\/li>\n<li>Content-Encoding kompresija tekstu saturam<\/li>\n<\/ul>\n<p><\/p>\n<h2>Novecoju\u0161as un nevajadz\u012bgas galvenes<\/h2>\n<p><\/p>\n<ul>\n<li>Server ar detaliz\u0113tu t\u012bmek\u013ca servera versiju<\/li>\n<li>X-Power-By<\/li>\n<li>X_ASPNET-Version<\/li>\n<li>Expires<\/li>\n<li>Pragma<\/li>\n<li>P3P<\/li>\n<li>Via<\/li>\n<li>X-UA-Compatible<\/li>\n<\/ul>\n<p><\/p>\n<h2>V\u0113lam\u0101s galvenes dro\u0161\u012bbai<\/h2>\n<p><\/p>\n<ul>\n<li>X-Content-Type-Options<\/li>\n<li>X-XSS-Protection<\/li>\n<li>Strict-Transport-Security<\/li>\n<li>Referrer-Policy<\/li>\n<li>Feature-Policy<\/li>\n<li>Content-Security-Policy vai Content-Security-Policy-Report-Only, lai aizliegtu ieb\u016bv\u0113tus skriptus un stilus.<\/li>\n<\/ul>\n<p><\/p>\n<h2>Galvenes ke\u0161o\u0161anai<\/h2>\n<p>\nIr oblig\u0101tas statiskam saturam ar garu ke\u0161o\u0161anas laiku un p\u0113tniekiem v\u0113lams dinamiskiem datiem ar \u012bsu ke\u0161o\u0161anas laiku.<\/p>\n<ul>\n<li>Last-Modified<\/li>\n<li>ETag<\/li>\n<li>Cache-Control<\/li>\n<li>Vary <\/li>\n<li>Ir svar\u012bgi, lai serveris pareizi atbild\u0113tu uz galven\u0113m: If-Modified-Since un If-None-Match<\/li>\n<\/ul>\n<p><\/p>\n<h2>HTTP\/2<\/h2>\n<p>\nTagad serverim j\u0101atbalsta HTTP\/2. Noklus\u0113juma r\u012bks p\u0101rbauda servera darb\u012bbu p\u0113c HTTP\/2. Ja j\u016bsu serveris neatbalsta HTTP\/2, izv\u0113lieties HTTP\/1.1.<br \/>\n<br \/>Avots: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/504220\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC. \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u0443\u0442\u0430\u043d\u0438\u0446\u0443 \u0438 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u044f. \u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0443\u0437\u043e\u043c\u0435\u0440\u043a\u0443 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438, \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442: \u0437\u0430\u0434\u0430\u0442\u044c [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-83142","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"lv_LV\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-28T23:41:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-28T23:41:57+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Servera HTTP galvenu p\u0101rbaudes pakalpojums | ProHoster","description":"Jebkuram vietn\u0113 ir svar\u012bgi pareizi konfigur\u0113t HTTP galvenes. Par galven\u0113m ir uzrakst\u012bts daudz rakstu. \u0160eit m\u0113s esam apkopoju\u0161i uzkr\u0101to pieredzi, RFC dokument\u0101ciju.","canonical_url":"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"lv_LV","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 | ProHoster","og:description":"\u0414\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HTTP-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041d\u0430 \u0442\u0435\u043c\u0443 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0435\u0439. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043e\u0431\u043e\u0431\u0449\u0438\u043b\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e RFC.","og:url":"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/servis-proverki-http-zagolovkov-servera","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-05-28T23:41:57+00:00","article:modified_time":"2020-05-28T23:41:57+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"83142","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 10:20:32","updated":"2022-09-28 02:17:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/83142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/comments?post=83142"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/83142\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media?parent=83142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/categories?post=83142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/tags?post=83142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}