{"id":2575,"date":"2020-04-18T12:58:27","date_gmt":"2020-04-18T09:28:27","guid":{"rendered":"https:\/\/airoserver.com\/?p=2575"},"modified":"2022-03-29T16:11:29","modified_gmt":"2022-03-29T11:41:29","slug":"nginx-installation-and-firewall-configuration","status":"publish","type":"post","link":"https:\/\/airoserver.com\/de\/engagiert\/nginx-installation-und-firewall-konfiguration\/","title":{"rendered":"Nginx-Installation und Firewall-Konfiguration"},"content":{"rendered":"<p>In diesem Beitrag erkl\u00e4ren wir die Installation der neuesten Version von Nginx und dessen <a href=\"https:\/\/airoserver.com\/de\/engagiert\/alles-uber-die-firewall\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Firewall (\u00f6ffnet in einer neuen Registerkarte)\">Firewall<\/a> Konfiguration.<\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/airoserver.com\/de\/engagiert\/nginx-webserver\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Nginx (\u00f6ffnet in einer neuen Registerkarte)\">Nginx<\/a> ist eines der <a href=\"https:\/\/airoserver.com\/de\/engagiert\/vergleich-verschiedener-linux-webserver\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Linux-Webserver (\u00f6ffnet in einer neuen Registerkarte)\">Linux-Webserver<\/a> der viele Vor- und Nachteile hat. Eine Sache bei Nginx ist, dass er kein Bedienfeld hat wie andere Webserver. Das macht die Sache ein bisschen schwieriger, aber immer noch \u00fcberschaubar. In unserem letzten Beitrag haben wir erkl\u00e4rt, wie Sie <a href=\"https:\/\/airoserver.com\/de\/engagiert\/ssl-zertifikat-auf-nginx-installieren\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"SSL installieren (\u00f6ffnet in einer neuen Registerkarte)\">SSL installieren<\/a> wenn Sie Nginx als Ihr <a href=\"https:\/\/airoserver.com\/de\/engagiert\/webserver\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Webserver (\u00f6ffnet in einer neuen Registerkarte)\">Webserver<\/a>.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2576\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/images.png\" alt=\"Nginx-Webserver\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Nginx-Installation<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Verbinden Sie sich \u00fcber eine SSH-Verbindung mit Ihrem Server. Verwenden Sie nun den unten stehenden Befehl, um die neueste Version von Nginx herunterzuladen und auf Ihrem Server zu installieren.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt install nginx\r\nsudo apt install -y nginx<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Nach der Installation k\u00f6nnen Sie die installierte Version mit diesem Befehl \u00fcberpr\u00fcfen:<\/p>\r\n\r\n\r\n\r\n<p>nginx -v<\/p>\r\n\r\n\r\n\r\n<p>Dann m\u00fcssen Sie den Status des Webservers \u00fcberpr\u00fcfen, denn wir wollen, dass er betriebsbereit ist:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo service nginx status<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Die Nginx-Installation ist abgeschlossen, nun m\u00fcssen Sie die Firewall konfigurieren.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Firewall-Konfigurationen<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Nach der Installation empfehlen wir Ihnen, ufw zu aktivieren, damit Sie Regeln zu Nginx hinzuf\u00fcgen k\u00f6nnen. (\u00dcberpr\u00fcfen Sie vorher Ihren SSh-Zugang, damit Sie nicht blockiert werden).<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw allow OpenSSH<\/code><\/pre>\r\n\r\n\r\n\r\n<p>F\u00fcgen wir nun Regeln f\u00fcr Nginx hinzu:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw allow 'Nginx HTTP'<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Das sollten Sie sich ansehen:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Regel hinzugef\u00fcgt\r\nRegel hinzugef\u00fcgt (v6)<\/pre>\r\n\r\n\r\n\r\n<p>Aktivieren von ufw in der Firewall:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw aktivieren<\/code><\/pre>\r\n\r\n\r\n\r\n<p>\u00dcberpr\u00fcfen wir nun den Status der Firewall:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw status<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Das sollten Sie sich ansehen:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>Zur Aktion von\r\n-- ------ ----\r\nOpenSSH ALLOW Anywhere\r\nNginx HTTP ALLOW Anywhere\r\nOpenSSH (v6) ALLOW Anywhere (v6)\r\nNginx HTTP (v6) \u00dcBERALL ERLAUBT (v6)<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Die Nginx-Installation ist abgeschlossen und es l\u00e4uft jetzt!<\/p>\r\n\r\n\r\n\r\n<p>In unserem n\u00e4chsten Beitrag werden wir Ihnen zeigen, wie Sie mehr als eine Domain mit dem Nginx Webserver verwalten k\u00f6nnen.<\/p>\r\n\r\n\r\n\r\n<p>Ich hoffe, dass Ihnen dieser Beitrag gefallen hat, wenn ja, k\u00f6nnen Sie unsere <a href=\"https:\/\/airoserver.com\/de\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Blog (\u00f6ffnet in einer neuen Registerkarte)\">Blog<\/a> f\u00fcr mehr!<\/p>","protected":false},"excerpt":{"rendered":"<p>In this post, we&#8217;ll explain the installation for the latest version of Nginx and its firewall configuration. Nginx is one of Linux web servers which has lots of pros and cons. One thing about Nginx is that it doesn&#8217;t have a panel on control panels like other web servers. So this makes things a bit [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33571,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,178],"tags":[85,142],"class_list":["post-2575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-airo-vps","tag-airoserver","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nginx Installation and Firewall Configuration<\/title>\n<meta name=\"description\" content=\"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/de\/engagiert\/nginx-installation-und-firewall-konfiguration\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nginx Installation and Firewall Configuration\" \/>\n<meta property=\"og:description\" content=\"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/de\/engagiert\/nginx-installation-und-firewall-konfiguration\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-18T09:28:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-29T11:41:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/Nginx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"Nginx Installation and Firewall Configuration\",\"datePublished\":\"2020-04-18T09:28:27+00:00\",\"dateModified\":\"2022-03-29T11:41:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/\"},\"wordCount\":267,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\",\"Linux\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"VPS\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/\",\"name\":\"Nginx Installation and Firewall Configuration\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2020-04-18T09:28:27+00:00\",\"dateModified\":\"2022-03-29T11:41:29+00:00\",\"description\":\"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nginx Installation and Firewall Configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/de\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nginx Installation and Firewall Configuration","description":"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.","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:\/\/airoserver.com\/de\/engagiert\/nginx-installation-und-firewall-konfiguration\/","og_locale":"de_DE","og_type":"article","og_title":"Nginx Installation and Firewall Configuration","og_description":"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.","og_url":"https:\/\/airoserver.com\/de\/engagiert\/nginx-installation-und-firewall-konfiguration\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2020-04-18T09:28:27+00:00","article_modified_time":"2022-03-29T11:41:29+00:00","og_image":[{"width":750,"height":350,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/Nginx.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"SEO Team","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"Nginx Installation and Firewall Configuration","datePublished":"2020-04-18T09:28:27+00:00","dateModified":"2022-03-29T11:41:29+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/"},"wordCount":267,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver","Linux"],"articleSection":["AiroServer","Dedicated","VPS"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/","url":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/","name":"Nginx Installation and Firewall Configuration","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2020-04-18T09:28:27+00:00","dateModified":"2022-03-29T11:41:29+00:00","description":"Connect to your server using an SSH connection. Use the command below to download the latest version of Nginx and start the Installation.","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/nginx-installation-and-firewall-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"Nginx Installation and Firewall Configuration"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/de\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts\/2575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/comments?post=2575"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/posts\/2575\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/media\/33571"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/media?parent=2575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/categories?post=2575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/de\/wp-json\/wp\/v2\/tags?post=2575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}