{"id":2201,"date":"2014-08-26T17:17:29","date_gmt":"2014-08-26T15:17:29","guid":{"rendered":"http:\/\/lloc.de\/?p=2201"},"modified":"2014-08-26T17:17:29","modified_gmt":"2014-08-26T15:17:29","slug":"variablen-der-nginx-konfiguration-debuggen","status":"publish","type":"post","link":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/","title":{"rendered":"Variablen der nginx-Konfiguration debuggen"},"content":{"rendered":"<p>Ich nutze schon seit einiger Zeit den <a href=\"http:\/\/nginx.org\/\">nginx-Webserver<\/a> f\u00fcr den VPS meiner Multisite. Das klappt eigentlich ganz gut, auch wenn ich hier vor einiger Zeit ein bisschen zu viel an der <a href=\"http:\/\/codex.wordpress.org\/Nginx\">Konfiguration<\/a> geschraubt hatte und die Dateien aus der Mediathek schlie\u00dflich nicht mehr ausgeliefert wurden.<!--more--><\/p>\n<p><em>Falls sich jemand (so wie ich mich zum Zeitpunkt des Dilemmas) fragt, ob und wie sich die Variablen der nginx-Konfiguration mal eben zum Debuggen ausgeben lassen, hier ein kurzer Tipp von mir:<\/em><\/p>\n<p>Die Direktive <a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_log_module.html#log_format\">log_format<\/a> ist da der recht hilfreich. Bei einem Ubuntu-Server findet man die <code>nginx.conf<\/code> in <code>\/etc\/nginx<\/code>. Da l\u00e4sst sich dann im http-Teil ein neues <strong>log_format<\/strong> definieren:<\/p>\n<p>Dieses kann man dann in der Konfiguration des <em>Virtual Host<\/em> nutzen. Falls ihr die Datei <code>default<\/code> in <code>\/etc\/nginx\/sites-available<\/code> verwendet, schaut bitte da nach:<\/p>\n<p>Danach m\u00fcsst ihr den nginx noch kurz die Konfiguration neu laden lassen<\/p>\n<p><code>sudo service nginx reload<\/code><\/p>\n<p>und euer neues Logfile verr\u00e4t nun noch ein bisschen mehr als vorher&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ich nutze schon seit einiger Zeit den nginx-Webserver f\u00fcr den VPS meiner Multisite. Das klappt eigentlich ganz gut, auch wenn ich hier vor einiger Zeit ein bisschen zu viel an der Konfiguration geschraubt hatte und die Dateien aus der Mediathek schlie\u00dflich nicht mehr ausgeliefert wurden.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"wpf_show_in_dewp_planet_feed":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum\" \/>\n<meta property=\"og:description\" content=\"Ich nutze schon seit einiger Zeit den nginx-Webserver f\u00fcr den VPS meiner Multisite. Das klappt eigentlich ganz gut, auch wenn ich hier vor einiger Zeit ein bisschen zu viel an der Konfiguration geschraubt hatte und die Dateien aus der Mediathek schlie\u00dflich nicht mehr ausgeliefert wurden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/\" \/>\n<meta property=\"og:site_name\" content=\"realloc&#039;s asylum\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-26T15:17:29+00:00\" \/>\n<meta name=\"author\" content=\"realloc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"realloc\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/\"},\"author\":{\"name\":\"realloc\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#\\\/schema\\\/person\\\/571f8ada841cca782e8001b942e032c8\"},\"headline\":\"Variablen der nginx-Konfiguration debuggen\",\"datePublished\":\"2014-08-26T15:17:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/\"},\"wordCount\":158,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#\\\/schema\\\/person\\\/571f8ada841cca782e8001b942e032c8\"},\"articleSection\":[\"WordPress\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/\",\"url\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/\",\"name\":\"Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#website\"},\"datePublished\":\"2014-08-26T15:17:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/variablen-der-nginx-konfiguration-debuggen\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ploetner.io\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Variablen der nginx-Konfiguration debuggen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/ploetner.io\\\/de\\\/\",\"name\":\"realloc's asylum\",\"description\":\"Software Developer &amp; WordPress Enthusiast | Born in Germany. Reborn in Italy.\",\"publisher\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#\\\/schema\\\/person\\\/571f8ada841cca782e8001b942e032c8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ploetner.io\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/#\\\/schema\\\/person\\\/571f8ada841cca782e8001b942e032c8\",\"name\":\"realloc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/sites\\\/8\\\/2022\\\/11\\\/52602486_10215993351498483_6040822616506236928_n.jpg\",\"url\":\"https:\\\/\\\/ploetner.io\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/sites\\\/8\\\/2022\\\/11\\\/52602486_10215993351498483_6040822616506236928_n.jpg\",\"contentUrl\":\"https:\\\/\\\/ploetner.io\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/sites\\\/8\\\/2022\\\/11\\\/52602486_10215993351498483_6040822616506236928_n.jpg\",\"width\":847,\"height\":848,\"caption\":\"realloc\"},\"logo\":{\"@id\":\"https:\\\/\\\/ploetner.io\\\/de\\\/wp-content\\\/uploads\\\/sites\\\/7\\\/sites\\\/8\\\/2022\\\/11\\\/52602486_10215993351498483_6040822616506236928_n.jpg\"},\"description\":\"Software Developer &amp; WordPress Enthusiast | Born in Germany. Reborn in Italy.\",\"sameAs\":[\"https:\\\/\\\/ploetner.io\\\/\"],\"url\":\"https:\\\/\\\/ploetner.io\\\/de\\\/author\\\/realloc\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/","og_locale":"de_DE","og_type":"article","og_title":"Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum","og_description":"Ich nutze schon seit einiger Zeit den nginx-Webserver f\u00fcr den VPS meiner Multisite. Das klappt eigentlich ganz gut, auch wenn ich hier vor einiger Zeit ein bisschen zu viel an der Konfiguration geschraubt hatte und die Dateien aus der Mediathek schlie\u00dflich nicht mehr ausgeliefert wurden.","og_url":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/","og_site_name":"realloc&#039;s asylum","article_published_time":"2014-08-26T15:17:29+00:00","author":"realloc","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"realloc","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/#article","isPartOf":{"@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/"},"author":{"name":"realloc","@id":"https:\/\/ploetner.io\/de\/#\/schema\/person\/571f8ada841cca782e8001b942e032c8"},"headline":"Variablen der nginx-Konfiguration debuggen","datePublished":"2014-08-26T15:17:29+00:00","mainEntityOfPage":{"@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/"},"wordCount":158,"commentCount":0,"publisher":{"@id":"https:\/\/ploetner.io\/de\/#\/schema\/person\/571f8ada841cca782e8001b942e032c8"},"articleSection":["WordPress"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/","url":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/","name":"Variablen der nginx-Konfiguration debuggen - realloc&#039;s asylum","isPartOf":{"@id":"https:\/\/ploetner.io\/de\/#website"},"datePublished":"2014-08-26T15:17:29+00:00","breadcrumb":{"@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ploetner.io\/de\/variablen-der-nginx-konfiguration-debuggen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ploetner.io\/de\/"},{"@type":"ListItem","position":2,"name":"Variablen der nginx-Konfiguration debuggen"}]},{"@type":"WebSite","@id":"https:\/\/ploetner.io\/de\/#website","url":"https:\/\/ploetner.io\/de\/","name":"realloc's asylum","description":"Software Developer &amp; WordPress Enthusiast | Born in Germany. Reborn in Italy.","publisher":{"@id":"https:\/\/ploetner.io\/de\/#\/schema\/person\/571f8ada841cca782e8001b942e032c8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ploetner.io\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/ploetner.io\/de\/#\/schema\/person\/571f8ada841cca782e8001b942e032c8","name":"realloc","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/ploetner.io\/de\/wp-content\/uploads\/sites\/7\/sites\/8\/2022\/11\/52602486_10215993351498483_6040822616506236928_n.jpg","url":"https:\/\/ploetner.io\/de\/wp-content\/uploads\/sites\/7\/sites\/8\/2022\/11\/52602486_10215993351498483_6040822616506236928_n.jpg","contentUrl":"https:\/\/ploetner.io\/de\/wp-content\/uploads\/sites\/7\/sites\/8\/2022\/11\/52602486_10215993351498483_6040822616506236928_n.jpg","width":847,"height":848,"caption":"realloc"},"logo":{"@id":"https:\/\/ploetner.io\/de\/wp-content\/uploads\/sites\/7\/sites\/8\/2022\/11\/52602486_10215993351498483_6040822616506236928_n.jpg"},"description":"Software Developer &amp; WordPress Enthusiast | Born in Germany. Reborn in Italy.","sameAs":["https:\/\/ploetner.io\/"],"url":"https:\/\/ploetner.io\/de\/author\/realloc\/"}]}},"_links":{"self":[{"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":0,"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"wp:attachment":[{"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ploetner.io\/de\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}