Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle DeepMind: Create your own voices with Gemini 3.8 text-to-speech(23.09.2026 um 17:23 Uhr)
YouTube Security VideosAMD: The Evolution of CPU Architecture in the AI Era: S3 E6(23.09.2026 um 17:00 Uhr)
YouTube Security VideosBuilding AMD Helios: From Design to Rackscale AI Solutions(23.09.2026 um 17:30 Uhr)
YouTube Security VideosFlutter: Why Holafly switched to a cross-platform framework(23.09.2026 um 18:00 Uhr)
YouTube Security VideosGoogle Workspace: Create HD videos at no cost with Gemini in Google Vids(23.09.2026 um 18:00 Uhr)
Windows Tipps & SecurityUnable to extend volume in Hyper-V(23.09.2026 um 13:43 Uhr)
YouTube Security VideosGoogle DeepMind: Create your own voices with Gemini 3.8 text-to-speech(23.09.2026 um 17:23 Uhr)
YouTube Security VideosAMD: The Evolution of CPU Architecture in the AI Era: S3 E6(23.09.2026 um 17:00 Uhr)
YouTube Security VideosBuilding AMD Helios: From Design to Rackscale AI Solutions(23.09.2026 um 17:30 Uhr)
YouTube Security VideosFlutter: Why Holafly switched to a cross-platform framework(23.09.2026 um 18:00 Uhr)
YouTube Security VideosGoogle Workspace: Create HD videos at no cost with Gemini in Google Vids(23.09.2026 um 18:00 Uhr)
Windows Tipps & SecurityUnable to extend volume in Hyper-V(23.09.2026 um 13:43 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

🌐 Secure NGINX Web Server on AWS EC2 with Let's Encrypt SSL and Custom Domain

Setting up a secure web server is a foundational DevOps skill. In this post, you'll learn how to ✅ Launch an EC2 instance ✅ Set up NGINX with a custom Hello page ✅ Secure it with a free SSL certificate using Let's Encrypt ✅ Connect your do…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Setting up a secure web server is a foundational DevOps skill. In this post, you'll learn how to



✅ Launch an EC2 instance

✅ Set up NGINX with a custom Hello page

✅ Secure it with a free SSL certificate using Let's Encrypt

✅ Connect your domain using Route 53







🧰 Prerequisites




  • AWS account

  • A registered domain (Route 53, GoDaddy, etc.)

  • PuTTY (Windows) or terminal (Linux/macOS)

  • Basic Linux command-line knowledge







☁️ Step 1: Launch an EC2 Instance




  1. Go to the AWS EC2 Dashboard

  2. Click Launch Instance

  3. Choose OS: Ubuntu 22.04 or Amazon Linux 2

  4. Select instance type: t3.medium

  5. Configure in a Public Subnet of a VPC

  6. Enable inbound rules in the Security Group


    • TCP 22 (SSH)

    • TCP 80 (HTTP)

    • TCP 443 (HTTPS)



  7. Download the .pem key pair







💻 Step 2: Connect via SSH using PuTTY (Windows)





  1. Open PuTTYgen




    • Load your .pem file

    • Click Save Private Key → this generates .ppk




  2. Open PuTTY




    • Host Name: ubuntu@your-ec2-ip

    • Go to Connection → SSH → Auth

    • Load the .ppk file

    • Click Open → You’re connected









🌍 Step 3: Point Domain to EC2




  1. Go to Route 53 → Hosted Zones

  2. Click Create Record


    • Type: A

    • Name: @ or www

    • Value: your EC2 IP





📌 Test: Visit http://yourdomain.com — NGINX default page should appear.







🔧 Step 4: Install NGINX + Hello Page





sudo apt update
sudo apt install nginx -y
echo "<h1>Hello from AWS + NGINX</h1>" | sudo tee /var/www/html/index.html
sudo systemctl restart nginx






Access it at http://yourdomain.com







🔐 Step 5: Add Free SSL with Let’s Encrypt



Install Certbot:




sudo apt install certbot python3-certbot-nginx -y







Run Certbot for your domain:




sudo certbot --nginx -d yourdomain.com







Test auto-renewal:




sudo certbot renew --dry-run













🧠 Bonus: Editing the NGINX Config






sudo vim /etc/nginx/sites-available/default







Example Config:




server {
listen 80;
server_name yourdomain.com;

root /var/www/html;
index index.html;

location / {
try_files $uri $uri/ =404;
}
}







Save and reload:




sudo systemctl reload nginx













📌 Project Structure






📂 /var/www/html/index.html       # Custom hello page
📂 /etc/nginx/sites-available # NGINX site configs
🔐 SSL: Managed by Certbot
🌐 Domain: Managed via Route 53













📊 Architecture Diagram



Image description






🏁 Final Output






https://yourdomain.com







With NGINX serving your page securely over HTTPS






If you found this helpful, please ❤️ or 🦄 and follow for more AWS & DevOps content...

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🌐 Secure NGINX Web Server on AWS EC2 with Let's Encrypt SSL and Custom Domain

Thematisch verwandte Begriffe: Secure, NGINX, Server, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-55610 | InvoiceShelf is an open-source web & mobile app that helps track expense…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick