<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: olawole abdul-lateef </title>
    <description>The latest articles on DEV Community by olawole abdul-lateef  (@lahteeph).</description>
    <link>https://dev.to/lahteeph</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1845279%2Fead46924-fa6d-42a6-91d8-8053ef815636.png</url>
      <title>DEV Community: olawole abdul-lateef </title>
      <link>https://dev.to/lahteeph</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lahteeph"/>
    <language>en</language>
    <item>
      <title>Configuring NGINX</title>
      <dc:creator>olawole abdul-lateef </dc:creator>
      <pubDate>Wed, 29 Jan 2025 21:44:57 +0000</pubDate>
      <link>https://dev.to/lahteeph/configuring-nginx-4n56</link>
      <guid>https://dev.to/lahteeph/configuring-nginx-4n56</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
In the world of DevOps, mastering the basics of web server configuration is a fundamental skill. As part of the DevOps training, I set up and configure NGINX on a fresh Ubuntu server. This task was designed to test the ability to work with basic web server configurations and deliver a functional web server. The goal was to install NGINX, configure it to serve a custom HTML page, and document the entire process. This blog post details my approach, challenges, and learnings from this task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approach&lt;br&gt;
Setting Up the Ubuntu Server:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I provisioned a Ubuntu server on a cloud platform (I used AWS EC2 for this task).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba0ph21i6oriwyin8sct.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fba0ph21i6oriwyin8sct.png" alt="Image description" width="800" height="199"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;I ensured the server had a public IP address and allowed inbound traffic on port 22 (SSH) and port 80 (HTTP).&lt;br&gt;
Installing NGINX&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I connected to the server via SSH using the ssh key generated and updated the package list using .&lt;code&gt;sudo apt update&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshvvk4uaq4hgtncevm73.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshvvk4uaq4hgtncevm73.png" alt="Image description" width="800" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I installed NGINX using the command sudo apt &lt;code&gt;install nginx -y&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frn86ycyyjijbh836ssxo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frn86ycyyjijbh836ssxo.png" alt="Image description" width="800" height="590"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After installation, I verified that NGINX was running using sudo &lt;code&gt;systemctl status nginx&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxuczm5kpbu5rbejp8by5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxuczm5kpbu5rbejp8by5.png" alt="Image description" width="800" height="245"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configuring the Custom HTML Page&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I edited the default NGINX HTML file located at &lt;code&gt;/var/www/html/index.html&lt;/code&gt; using the &lt;code&gt;nano&lt;/code&gt; text editor. i replaced the default content with my desire text.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feysgwvzfcg89k45lo627.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feysgwvzfcg89k45lo627.png" alt="Image description" width="800" height="582"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After saving the changes with control X, I restarted NGINX using &lt;code&gt;sudo systemctl restart nginx&lt;/code&gt; to apply the new configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Testing the Configuration:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I opened my browser and navigated to &lt;a href="http://3.235.74.74" rel="noopener noreferrer"&gt;http://3.235.74.74&lt;/a&gt; (my ubuntu server public ip) The custom HTML page was successfully displayed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv5ljhrupepk4246l7yjd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv5ljhrupepk4246l7yjd.png" alt="Image description" width="800" height="724"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;thanks&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>nginx</category>
    </item>
  </channel>
</rss>
