<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jesse-Maurice Iyoha on Medium]]></title>
        <description><![CDATA[Stories by Jesse-Maurice Iyoha on Medium]]></description>
        <link>https://medium.com/@iyohajessy?source=rss-456dd0891874------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*APZsIlpgMdDM8sJP6jdOWg.jpeg</url>
            <title>Stories by Jesse-Maurice Iyoha on Medium</title>
            <link>https://medium.com/@iyohajessy?source=rss-456dd0891874------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:02:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iyohajessy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting Up NGINX on Ubuntu: A Step Toward Mastering DevOps]]></title>
            <link>https://medium.com/@iyohajessy/setting-up-nginx-on-ubuntu-a-step-toward-mastering-devops-f76639e5cefd?source=rss-456dd0891874------2</link>
            <guid isPermaLink="false">https://medium.com/p/f76639e5cefd</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[hnginternship]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Jesse-Maurice Iyoha]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 00:23:23 GMT</pubDate>
            <atom:updated>2025-01-29T18:55:32.580Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LdOnGt1IKfb3jN5plESp9A.jpeg" /></figure><p><strong>Introduction:</strong><br> As part of my HNG internship, I was tasked with setting up and configuring NGINX on a fresh Ubuntu server. This task was designed to test my ability to work with basic web server configurations and deliver a functional web server. While the initial goal seemed straightforward, working with AWS Free Tier introduced unexpected challenges that required troubleshooting and deeper learning. Here’s a detailed account of my experience, challenges, and learnings.</p><p><strong>Approach to Completing the Task:</strong></p><h3>1. Research and Preparation:</h3><ul><li>I began by researching NGINX and its role as a web server, along with basic Ubuntu server commands and networking concepts.</li><li>I followed the official NGINX documentation and AWS EC2 setup guides to ensure I was on the right track.</li></ul><h3>2. Setting Up the Server on AWS Free Tier:</h3><ul><li>I created an <strong>AWS Free Tier</strong> account and launched a <strong>Ubuntu EC2 instance</strong>.</li><li>I generated an SSH key pair (my-keypair.pem) to securely connect to the server.</li><li>After launching the instance, I retrieved the <strong>public IP address</strong> assigned to my instance.</li></ul><h3>3. Installing and Configuring NGINX:</h3><ul><li>I installed NGINX using apt, started the service, and ensured it would launch at boot.</li><li>I created a custom HTML page to display a welcome message.</li><li>I set proper file permissions so NGINX could serve the page correctly.</li></ul><h3>4. Challenges Faced and Solutions:</h3><h4>A. Identifying the Correct IP Address</h4><ul><li>Initially, I had multiple IP addresses (private, public, and loopback), making it unclear which one to use.</li><li>AWS assigns a <strong>private IP</strong> (accessible only within the AWS network) and a <strong>public IP</strong> (which changes when the instance is restarted).</li><li>Solution: I confirmed the <strong>public IP</strong> of my EC2 instance using:</li><li>curl <a href="http://checkip.amazonaws.com/">http://checkip.amazonaws.com</a></li><li>and used that to access my server.</li></ul><h4>B. Unable to Access the Server from My Phone</h4><ul><li>I tried accessing the server from my phone but got no response.</li><li>Solution: I realized the default AWS <strong>Security Group settings block inbound HTTP traffic</strong>.</li><li>Fix: I updated my EC2 instance’s <strong>Security Group</strong>:</li><li>Allowed <strong>HTTP HTTPS (port 443)</strong> traffic from <strong>anywhere</strong></li><li>Allowed <strong>SSH (port 22)</strong> only from my IP for security.</li></ul><h4>C. Ensuring the Address Is Accessible Anywhere and Anytime</h4><ul><li>AWS assigns a new <strong>public IP</strong> if the instance is stopped and restarted, making the server inaccessible with the previous IP.</li><li>Solution: I allocated and attached an <strong>Elastic IP</strong> to my EC2 instance, ensuring a <strong>permanent</strong> public address.</li></ul><h3>5. Testing and Final Deployment:</h3><ul><li>After fixing the security rules and assigning an <strong>Elastic IP</strong>, I tested the server in multiple ways:</li><li>Opened a browser and entered http://&lt;elastic-ip&gt;/ to verify my webpage loaded.</li><li>Used my phone (on a different network) to confirm external accessibility.</li><li>Restarted the EC2 instance to check if the <strong>Elastic IP</strong> remained unchanged.</li></ul><h3>Learning and Professional Growth:</h3><p>This task was more than just setting up a web server — it provided hands-on experience with cloud infrastructure and networking. Key takeaways:</p><ul><li><strong>NGINX &amp; Ubuntu:</strong> Learned to configure, manage, and troubleshoot a web server.</li><li><strong>AWS Free Tier Setup:</strong> Understood instance creation, key pairs, and security configurations.</li><li><strong>Networking &amp; Accessibility:</strong> Gained insights into security groups, Elastic IPs, and public vs. private IPs.</li><li><strong>Problem-Solving:</strong> Faced real-world issues and implemented solutions to make the server consistently accessible.</li></ul><p>This experience solidified my foundational understanding of server management, cloud hosting, and troubleshooting — key skills for a future DevOps Engineer.</p><p><strong>References</strong>:</p><ul><li><a href="https://hng.tech/hire/devops-engineers">DevOps Engineers</a></li><li><a href="https://hng.tech/hire/cloud-engineers">Cloud Engineers</a></li><li><a href="https://hng.tech/hire/site-reliability-engineers">Site Reliability Engineers</a></li><li><a href="https://hng.tech/hire/platform-engineers">Platform Engineers</a></li><li><a href="https://hng.tech/hire/infrastructure-engineers">Infrastructure Engineers</a></li><li><a href="https://hng.tech/hire/kubernetes-specialists">Kubernetes Specialists</a></li><li><a href="https://hng.tech/hire/aws-solutions-architects">AWS Solutions Architects</a></li><li><a href="https://hng.tech/hire/azure-devops-engineers">Azure DevOps Engineers</a></li><li><a href="https://hng.tech/hire/google-cloud-engineers">Google Cloud Engineers</a></li><li><a href="https://hng.tech/hire/ci-cd-pipeline-engineers">CI/CD Pipeline Engineers</a></li><li><a href="https://hng.tech/hire/monitoring-observability-engineers">Monitoring/Observability Engineers</a></li><li><a href="https://hng.tech/hire/automation-engineers">Automation Engineers</a></li><li><a href="https://hng.tech/hire/docker-specialists">Docker Specialists</a></li><li><a href="https://hng.tech/hire/linux-developers">Linux Developers</a></li><li><a href="https://hng.tech/hire/postgresql-developers">PostgreSQL Developers</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f76639e5cefd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>