Automatically translated.View original post

What is nginx

# Trending # Lemon 8 Howtoo # Web Site Writing Basics # webserver # nginx

Installing Nginx (read "Engine-X") on Ubuntu Server is the gold standard for Web Infrastructure because it is light, fast and flexible.

Here are some of the main benefits you can get from using Nginx:

1. Becoming a high-performance Web Server

Nginx is designed to handle many concurrent connections using significantly fewer resources (RAM / CPU) than Apache. It is very suitable for:

Transmission of Static Content such as Images, CSS, JavaScript is extremely fast.

It supports enormous traffic, with the server machine also running stationary.

2. Reverse Proxy (Smart Outpost)

This is the most popular feature. Nginx can act as an "outpost," receive requests from the Internet and then forward them to the application server behind it (such as Node.js, Python, PHP).

Benefits: Helps hide backyard complexity and increase security because the User doesn't talk directly to App Server.

3.Load Balancer (Workload Distribution)

If you have multiple servers, Nginx can help distribute Traffic to machines equally to prevent one from overworking.

4.SSL Termination (Safety Management)

Instead of having your application decode HTTPS itself every time, you can give this function to Nginx.

It makes it easy to manage Certificates (such as Let's Encrypt) in one place.

Reduce the processing load of the main application.

5. Ease of installation on Ubuntu

Because Ubuntu is a highly popular operating system, installing Nginx is easy to do with only a few commands:

Bash

Sudo apt update

Sudo apt install nginx

And there is a very large community. If you are addicted to a problem, you can find a solution in Ubuntu almost immediately.

In a nutshell: If you want your website or API to be "fast, stable and supported by a lot of people," Nginx is the answer.

2/3 Edited to

... Read moreจากประสบการณ์ที่ใช้ Nginx กับเซิร์ฟเวอร์ Ubuntu หลายโปรเจ็กต์ ผมเห็นว่าความน่าสนใจของ Nginx นอกจากจะเป็นเว็บเซิร์ฟเวอร์ที่จัดการคำร้องขอจำนวนมากได้อย่างมีประสิทธิภาพแล้ว ยังมีความยืดหยุ่นในการจัดการระบบหลังบ้านที่โดดเด่นมาก อย่างหนึ่งที่ผมมักใช้คือฟังก์ชัน Reverse Proxy ที่ช่วยลดความซับซ้อนของระบบหลังบ้านและเพิ่มชั้นความปลอดภัยได้จริง โดยการที่ Nginx ทำหน้าที่รับ Request ก่อนแล้วส่งต่อไปยัง Application Server เช่น Node.js หรือ PHP ทำให้ผู้ใช้งานไม่สามารถเข้าถึงแอปพลิเคชันโดยตรง ลดความเสี่ยงจากการโจมตีได้มาก อีกเรื่องที่ชอบคือ Load Balancer ของ Nginx ที่ช่วยกระจายภาระงานให้กับเซิร์ฟเวอร์หลายตัวได้อย่างสมดุล เมื่อระบบมีผู้ใช้จำนวนมากทำให้เว็บไซต์สามารถทำงานได้อย่างเสถียร และไม่ล่มง่ายเมื่อมีทราฟฟิกสูง นอกจากนี้ ระบบ SSL Termination ที่ Nginx จัดการยังช่วยให้การติดตั้งและดูแลใบรับรอง SSL เช่น Let’s Encrypt เป็นเรื่องง่าย ในโปรเจ็กต์ที่เคยดูแล ผมสามารถเปิดใช้งาน HTTPS ได้รวดเร็วโดยไม่ต้องปรับแต่ง Application Server หลักเลย การติดตั้ง Nginx บน Ubuntu ก็ง่ายมาก เพียงคำสั่ง few คำสั่งก็ใช้งานได้ทันที และด้วยชุมชนผู้ใช้งานขนาดใหญ่ ทำให้เวลาผมเจอปัญหาหรือต้องการตั้งค่าพิเศษ สามารถค้นหาคำตอบและตัวอย่างวิธีแก้ได้เกือบจะทันที ถ้าคุณเป็นนักพัฒนาหรือดูแลเซิร์ฟเวอร์ที่ต้องการระบบที่เร็วและเสถียร Nginx ถือเป็นตัวเลือกที่ผมแนะนำอย่างยิ่ง เพราะทั้งช่วยประหยัดทรัพยากรระบบและรองรับผู้ใช้จำนวนมากได้ดีจริงๆ

Related posts

Build better habits with this Notion Habit Tracker
I started using this Notion Habit Tracker to organize my daily routines, and it has made staying consistent so much easier. Instead of feeling overwhelmed by big goals, I can now: 🌿 track my habits every day 📊 see my progress visually 🎯 stay focused on what matters 💡 build routines that actu
IdeationWorks

IdeationWorks

18 likes

A computer screen shows Pinterest with a browser extension popup titled "What runs au.pinterest.com?". The popup lists technologies like Facebook, React, Pinterest Tag, and webpack. A pink bunny figurine sits atop the monitor, with text overlay "How to find software running websites SWIPE TO VIEW."
Titled "From Frameworks to Fonts!", this image displays a browser extension popup detailing a website's tech stack. It shows analytics, programming languages, tag managers, web frameworks, web servers, and fonts. Text highlights that it reveals "Everything that runs a website" including frameworks, technologies, CMS, themes, and fonts.
Titled "WhatRuns", this image shows the Chrome Web Store page for the WhatRuns extension, indicating 400,000 users and a 3.8 rating. Below, a screenshot demonstrates the extension identifying technologies on a website. Text states, "Find out exactly what powers any website with WhatRuns—one click and you're in!"
✨ how to find software that runs any website
‧°𐐪♡𐑂°‧₊ 🍮 WhatRuns lets you easily see the tech stack behind any website, which can be really useful if you're a student or creator trying to understand web development. With just one click, you can uncover frameworks, fonts, plugins, and more—plus, it tracks any changes the site makes to it
peachiesuga ♡

peachiesuga ♡

382 likes

Growth starts when the technical issues are removed.
Edwige Alexandre

Edwige Alexandre

1 like

A smiling woman winks at her desk, which features two monitors displaying code, a laptop on a stand, and a keyboard. Text overlays indicate these are her work-from-home software developer essentials.
A hand holds up a pair of light-colored over-ear headphones. In the background, a desk setup with monitors and a laptop is visible. Text on the image identifies the headphones.
A laptop on a wooden stand displays code, with a mechanical keyboard featuring gray, white, and yellow keys below it. Text on the image identifies the keyboard model.
My desk essentials!
Working from home and being on the computer all day, I really only need a few things. These are the essentials at my desk! 💕
Chloe Berry

Chloe Berry

7 likes

A line graph titled 'Web Server Popularity Trends' displays the usage percentage of various web servers from 2014 to 2024. It shows Apache's decline, Nginx's rise and stabilization, and the increasing popularity of Cloudflare Server and LiteSpeed, based on W3Techs.com data.
Web server popularity trends
Ever wondered how the web server world evolved over time? Here is a decade-long look at how web server dominance shifted—from Apache’s reign to Nginx’s rise and the emergence of cloud-native contenders like Cloudflare and LiteSpeed 😎👆 #linux #technology #web #softwareengineering #tec
Learn Linux with Dan

Learn Linux with Dan

3 likes

Linux command chaining
POSIX-compliant Linux shells (bash, zsh, sh) support command chaining — a simple way to link multiple commands and control whether the next one runs based on success, failure, or just order of execution 😎👆 Find a high-res pdf book with all my Linux related infographics from https://study-notes.o
Learn Linux with Dan

Learn Linux with Dan

6 likes

Linux command chaining
Linux shells like bash and zsh make it easy to combine commands using chaining, command substitution, and process substitution, letting you run tasks in sequence, reuse command output, or connect commands more flexibly 😎👆 Find a high-res pdf ebook with all my Linux related infographics from http
Learn Linux with Dan

Learn Linux with Dan

2 likes

An infographic titled "Self-Hosted AWS Alternatives" by Dan Nanni. It lists various AWS services like S3, DynamoDB, EC2, and RDS, each with a green checkmark. Below each AWS service, a list of self-hosted alternative technologies is provided, such as Swift, Cassandra, OpenStack, and MariaDB.
Self-hosted AWS alternatives
Want more control and privacy on your cloud workloads? Self-hosted alternatives to AWS let you tailor your infrastructure to your needs, offering flexibility, though with trade-offs in time, reliability, and maintenance Here are a list of self-hosted alternatives to AWS cloud services 😎👆 #aws
Learn Linux with Dan

Learn Linux with Dan

21 likes

An infographic titled "Linux Command Chaining" explains various command chaining methods. It covers sequential chaining, conditional execution for success (&&) and failure (||), combined success/failure conditions, pipelines (|), and redirection (>, >>), each with a command example. The graphic is created by Dan Nanni from study-notes.org.
Linux command chaining
POSIX-compliant Linux shells like bash, zsh and sh provide a feature called “command chaining”, which lets you connect multiple commands using specific operators to control their execution based on success, failure or sequence 😎👆 #software Find high-res pdf books with all my #linux infogra
Learn Linux with Dan

Learn Linux with Dan

3 likes

An infographic titled 'Sysdig Command Examples' defines Sysdig as a Linux tracing tool and lists various commands for monitoring CPU, memory, network, file I/O, and capturing events. It's created by Dan Nanni.
Useful sysdig command examples
The sysdig command is a powerful system-level exploration and troubleshooting tool for Linux. Sysdig can capture and analyze real-time system calls and events, enabling deep visibility into processes, containers, network activity, and file access Here are useful sysdig command examples 😎👆 #te
Learn Linux with Dan

Learn Linux with Dan

28 likes

https://orcid.org/0009-0002-7219-1363 ⚜️XP
hih_d.g._xp ⚜️

hih_d.g._xp ⚜️

0 likes

An infographic titled 'Self-Hosted AWS Alternatives' lists various Amazon Web Services (AWS) like S3, DynamoDB, EC2, and RDS. Below each AWS service, numerous self-hosted open-source alternatives are presented with their respective logos, offering options for cost predictability and control.
Self-hosted AWS alternatives
Cloud bills getting out of control? Self hosting instead of AWS can give you cost predictability, control, and privacy, but you trade that for more hands on time, reliability risk, and ongoing maintenance. Here are self-hosted alternatives to AWS if you are up for it 😎👆 Find high-res pdf ebo
Learn Linux with Dan

Learn Linux with Dan

8 likes

An infographic titled "Popular Linux Server Software" by Dan Nanni, categorizing various open-source tools. It lists software for Web, Database, File, Mail, Monitoring, Git, Security, Backup, Automation, Hypervisor & Containerization, VPN, and Load Balancing, each with specific examples and icons.
Popular Linux server software
As a dominant cloud OS, Linux powers a variety of server apps. Here are some of the most popular open-source server software and management tools available on Linux 😎👆 #softwareengineer #programmer #coding #software Find a high-res pdf book with all my #linux related infographics fro
Learn Linux with Dan

Learn Linux with Dan

10 likes

Certificate lifecycle management
Managing digital certificates from creation to expiration is essential for maintaining secure, trusted, and uninterrupted encrypted communication across systems Here is information about certificate management steps and tools involved in each step 😎👆 #TechTips #technology #linux #software
Learn Linux with Dan

Learn Linux with Dan

1 like

Network devices
Network devices are essential for enabling communication between devices in a network. These devices fall into various categories, each serving a specific function in managing, directing, and transmitting data. Here’s a detailed breakdown of the most common network devices: 1. Router Function
Randy

Randy

17 likes

A list of Linux `ps` command examples, detailing various uses like displaying processes, filtering by user or PID, showing threads, monitoring resource usage, and sorting processes by CPU or memory. It serves as a practical guide for process management.
Useful Linux ps command examples
While the ps command is one of the most often used Linux utilities, many of you may not fully utilize its capabilities due to its complex and often confusing syntax Here are a list of useful ps command examples 😎👆 Find high-res pdf books with all my #Linux related infographics at https://st
Learn Linux with Dan

Learn Linux with Dan

2 likes

An infographic titled 'Popular Linux Server Software' by Dan Nanni, categorizing various open-source tools. It lists software for Web, Database, File, Mail, Monitoring, Git, Security, Backup, Automation, Hypervisor, VPN, and Load Balancing, each with logos and names.
Popular Linux server software
As the dominant cloud OS, Linux powers a variety of server applications. Here are some of the most popular open-source Linux server software and management tools 😎👇 #linux #opensource
Learn Linux with Dan

Learn Linux with Dan

5 likes

An infographic comparing forward and reverse proxies. A forward proxy sits between clients and the internet, acting for clients to access external sites like Netflix. A reverse proxy sits in front of backend servers for a website like ABC.com, distributing internet requests to internal servers for load balancing and security.
Forward proxy vs. reverse proxy
In networking and web architecture, proxies are used to control and mediate traffic between clients and servers, but forward and reverse proxies serve opposite roles 😎👆 A forward proxy sits between internal clients and the external internet, receiving client requests and fetching resources on th
Learn Linux with Dan

Learn Linux with Dan

5 likes

This image is a GNU/POSIX ps command cheatsheet, listing various commands and their functions for process management. It includes examples for displaying processes, filtering by user/PID, showing resource usage, sorting, and identifying zombie processes. The cheatsheet was created by Dan Nanni from study-notes.org.
GNU/POSIX ps command examples
GNU/POSIX ps syntax is composable and script friendly, giving precise, non interactive control over process selection and formatting compared to BSD style’s more ad hoc, human oriented flags. Here are useful ps command examples in GNU style 😎👆 Find high-res pdf ebooks with all my Linux relate
Learn Linux with Dan

Learn Linux with Dan

2 likes

Unbox My Logitech Keyboard and Mouse With Me ⌨️🖱️
I am LOVING my new keyboard and mouse! I love that you can customize the RGB on the keyboard and make it ANY color you want! The mouse is great too! #keyboardunboxing #wireless keyboard & mouse #techfinds #gamingsetup #keyboardcollection
MissSassitudeEm

MissSassitudeEm

45 likes