<?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: patrick ibe</title>
    <description>The latest articles on DEV Community by patrick ibe (@patrick_ibe).</description>
    <link>https://dev.to/patrick_ibe</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%2F2787327%2F195c58ed-5d5b-49c0-9e51-f5253ffbd407.jpeg</url>
      <title>DEV Community: patrick ibe</title>
      <link>https://dev.to/patrick_ibe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/patrick_ibe"/>
    <language>en</language>
    <item>
      <title>Mastering Web Server Setup: A Step-by-Step Guide to Installing and Configuring NGINX on a Fresh Ubuntu System</title>
      <dc:creator>patrick ibe</dc:creator>
      <pubDate>Thu, 30 Jan 2025 12:03:51 +0000</pubDate>
      <link>https://dev.to/patrick_ibe/mastering-web-server-setup-a-step-by-step-guide-to-installing-and-configuring-nginx-on-a-fresh-2lh4</link>
      <guid>https://dev.to/patrick_ibe/mastering-web-server-setup-a-step-by-step-guide-to-installing-and-configuring-nginx-on-a-fresh-2lh4</guid>
      <description>&lt;p&gt;As part of my journey into DevOps, I recently completed the HNG DevOps Stage 0 - NGINX Configuration task. This experience provided hands-on exposure to setting up a web server, configuring it, and troubleshooting issues in a cloud environment. Below, I share my approach, challenges, and the impact this task had on my learning and career development.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Approach to Completing the Task&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;To complete the task, I followed these structured steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Launching an AWS EC2 Instance&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;I logged into the AWS Management Console and launched an Ubuntu EC2 instance.&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%2Ffa8fh39dub84see8dm5i.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%2Ffa8fh39dub84see8dm5i.png" alt="Image description" width="800" height="339"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configured the &lt;strong&gt;security group&lt;/strong&gt; to allow HTTP (port 80) and SSH (port 22) access&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%2Fsxofypmr7b1ypiltpb91.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%2Fsxofypmr7b1ypiltpb91.png" alt="Image description" width="800" height="253"&gt;&lt;/a&gt;&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%2Fmji1p0xjayjm1pik09tf.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%2Fmji1p0xjayjm1pik09tf.png" alt="Image description" width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connected to the instance via SSH using the command:&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%2Fpj8t5q3atkxezu4r9nk8.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%2Fpj8t5q3atkxezu4r9nk8.png" alt="Image description" width="800" height="733"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Installing and Configuring NGINX&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;update package repositories and installed &lt;strong&gt;NGINX&lt;/strong&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%2F4xvwonw7ievmqo9ctelb.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%2F4xvwonw7ievmqo9ctelb.png" alt="Image description" width="800" height="756"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Creating a Custom HTML Page&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modified the default &lt;strong&gt;index.html&lt;/strong&gt; page to display:&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%2Ffdq44tjszr6mtpsn0jb2.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%2Ffdq44tjszr6mtpsn0jb2.png" alt="Image description" width="800" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Restarted NGINX to apply changes:&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%2F7xkw18kfrhlt5jhifwwz.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%2F7xkw18kfrhlt5jhifwwz.png" alt="Image description" width="800" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Testing the Configuration&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opened a browser and accessed &lt;a href="http://13.60.55.194/" rel="noopener noreferrer"&gt;&lt;code&gt;http://13.60.55.194&lt;/code&gt;&lt;/a&gt; to verify that the webpage was correctly served.&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%2Fk2lub4atpfc3r7et1dlz.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%2Fk2lub4atpfc3r7et1dlz.png" alt="Image description" width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Challenges and How I Overcame Them
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Security Group Misconfiguration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Initially, I couldn't access the webpage from my browser. After troubleshooting, I realized that the &lt;strong&gt;security group settings&lt;/strong&gt; didn’t allow HTTP traffic. To fix this, I updated the AWS security group rules to allow &lt;strong&gt;port 80 (HTTP)&lt;/strong&gt; from all sources.&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%2Ft94zxldyq3e65oy4960x.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%2Ft94zxldyq3e65oy4960x.png" alt="Image description" width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How This Task Contributes to My Learning and Career Goals&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This task was a foundational step in my &lt;strong&gt;DevOps&lt;/strong&gt; journey. By working with AWS EC2 and NGINX, I gained&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Practical cloud deployment experience&lt;/strong&gt;, which is essential for roles like &lt;strong&gt;Cloud Engineer&lt;/strong&gt; &lt;a href="https://hng.tech/hire/cloud-engineers" rel="noopener noreferrer"&gt;(HNG Cloud Engineers)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web server configuration skills&lt;/strong&gt;, a key competency for &lt;strong&gt;DevOps Engineers&lt;/strong&gt; &lt;a href="https://hng.tech/hire/devops-engineers" rel="noopener noreferrer"&gt;(HNG DevOps Engineers)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Problem-solving abilities&lt;/strong&gt;, as I learned to troubleshoot and resolve real-world server issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This experience has reinforced my passion for &lt;strong&gt;cloud computing and DevOps&lt;/strong&gt;, bringing me one step closer to my professional goal of becoming a skilled &lt;strong&gt;Cloud &amp;amp; DevOps Engineer&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Setting up NGINX on AWS EC2 was a rewarding challenge. It provided valuable hands-on experience with &lt;strong&gt;cloud infrastructure, web server configuration, and troubleshooting&lt;/strong&gt;. I look forward to applying these skills in more complex &lt;strong&gt;DevOps&lt;/strong&gt; environments and real-world cloud projects.&lt;/p&gt;

</description>
      <category>cloudcomputing</category>
      <category>devops</category>
      <category>webserver</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
