{"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\/fr\/dedie\/installation-de-nginx-et-configuration-du-pare-feu\/","title":{"rendered":"Installation de Nginx et configuration du pare-feu"},"content":{"rendered":"<p>Dans ce billet, nous allons expliquer l'installation de la derni\u00e8re version de Nginx et de son <a href=\"https:\/\/airoserver.com\/fr\/dedie\/tout-sur-le-pare-feu\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"firewall (s&#039;ouvre dans un nouvel onglet)\">pare-feu<\/a> configuration.<\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/airoserver.com\/fr\/dedie\/serveur-web-nginx\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Nginx (s&#039;ouvre dans un nouvel onglet)\">Nginx<\/a> est l'un des <a href=\"https:\/\/airoserver.com\/fr\/dedie\/comparaison-de-differents-serveurs-web-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Serveurs web Linux (s&#039;ouvre dans un nouvel onglet)\">Serveurs web Linux<\/a> qui pr\u00e9sente de nombreux avantages et inconv\u00e9nients. Une chose \u00e0 propos de Nginx est qu'il n'a pas de panneau de contr\u00f4le comme les autres serveurs web. Cela rend les choses un peu plus difficiles, mais reste g\u00e9rable. Dans notre dernier article, nous avons expliqu\u00e9 comment vous pouvez <a href=\"https:\/\/airoserver.com\/fr\/dedie\/installation-dun-certificat-ssl-sur-nginx\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"installer SSL (s&#039;ouvre dans un nouvel onglet)\">installer SSL<\/a> en ayant Nginx comme <a href=\"https:\/\/airoserver.com\/fr\/dedie\/serveur-web\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"serveur web (s&#039;ouvre dans un nouvel onglet)\">serveur web<\/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=\"Serveur web Nginx\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Installation de Nginx<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Connectez-vous \u00e0 votre serveur \u00e0 l'aide d'une connexion SSH. Utilisez ensuite la commande ci-dessous pour t\u00e9l\u00e9charger et installer la derni\u00e8re version de Nginx sur votre serveur.<\/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>Apr\u00e8s l'installation, vous pouvez v\u00e9rifier la version install\u00e9e \u00e0 l'aide de cette commande :<\/p>\r\n\r\n\r\n\r\n<p>nginx -v<\/p>\r\n\r\n\r\n\r\n<p>Vous devez ensuite v\u00e9rifier l'\u00e9tat du serveur web, car nous voulons qu'il soit op\u00e9rationnel :<\/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>L'installation de Nginx est termin\u00e9e et vous devez maintenant configurer le pare-feu.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Configurations du pare-feu<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Apr\u00e8s l'installation, nous vous recommandons d'activer ufw afin de pouvoir ajouter des r\u00e8gles sur Nginx. (Avant cela, v\u00e9rifiez votre acc\u00e8s \u00e0 SSh pour ne pas \u00eatre bloqu\u00e9).<\/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>Ajoutons maintenant des r\u00e8gles sur Nginx :<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw allow 'Nginx HTTP' (en anglais)<\/code><\/pre>\r\n\r\n\r\n\r\n<p>Vous devriez voir \u00e7a :<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">R\u00e8gle ajout\u00e9e\r\nR\u00e8gle ajout\u00e9e (v6)<\/pre>\r\n\r\n\r\n\r\n<p>Activation de l'ufw dans le pare-feu :<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>sudo ufw enable<\/code><\/pre>\r\n\r\n\r\n\r\n<p>V\u00e9rifions maintenant l'\u00e9tat du pare-feu :<\/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>Vous devriez voir \u00e7a :<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>\u00c0 l'action De\r\n-- ------ ----\r\nOpenSSH Autoris\u00e9 partout\r\nNginx HTTP Autoris\u00e9 partout\r\nOpenSSH (v6) Autoris\u00e9 partout (v6)\r\nNginx HTTP (v6) Autoris\u00e9 partout (v6)<\/code><\/pre>\r\n\r\n\r\n\r\n<p>L'installation de Nginx est termin\u00e9e et le syst\u00e8me fonctionne maintenant !<\/p>\r\n\r\n\r\n\r\n<p>Dans notre prochain article, nous allons vous montrer comment vous pouvez g\u00e9rer plus d'un domaine avec le serveur web Nginx.<\/p>\r\n\r\n\r\n\r\n<p>J'esp\u00e8re que vous avez appr\u00e9ci\u00e9 cet article. Si c'est le cas, vous pouvez visiter notre site web. <a href=\"https:\/\/airoserver.com\/fr\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"blog (s&#039;ouvre dans un nouvel onglet)\">blog<\/a> pour en savoir plus !<\/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\/fr\/dedie\/installation-de-nginx-et-configuration-du-pare-feu\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\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\/fr\/dedie\/installation-de-nginx-et-configuration-du-pare-feu\/\" \/>\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=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\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\":\"fr-FR\",\"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\":\"fr-FR\",\"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\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@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\":\"fr-FR\",\"@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\/fr\/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\/fr\/dedie\/installation-de-nginx-et-configuration-du-pare-feu\/","og_locale":"fr_FR","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\/fr\/dedie\/installation-de-nginx-et-configuration-du-pare-feu\/","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":{"\u00c9crit par":"SEO Team","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"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":"fr-FR","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":"fr-FR","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":"fr-FR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@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":"fr-FR","@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\/fr\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts\/2575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/comments?post=2575"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/posts\/2575\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/media\/33571"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/media?parent=2575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/categories?post=2575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fr\/wp-json\/wp\/v2\/tags?post=2575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}