Title here
Summary here
Nginx (pronounced “engine-x”) is a high-performance web server known for its speed, reliability, and flexibility. It’s not just a web server—it’s also a reverse proxy, load balancer, and API gateway. Whether you’re serving static files, forwarding requests, or handling massive traffic loads, Nginx has your back.
| Feature | Nginx | Apache |
|---|---|---|
| Performance | Asynchronous, event-driven | Process-based, thread-heavy |
| Resource Usage | Low memory footprint | Higher resource consumption |
| Load Balancing | Built-in reverse proxy | Requires additional modules |
| Configuration | Declarative and lightweight | More complex and extensive |
sudo apt update
sudo apt install nginx -ysudo yum install epel-release -y
sudo yum install nginx -ysudo systemctl start nginx
sudo systemctl enable nginxginx -vsudo systemctl status nginx/etc/nginx/nginx.conf/etc/nginx/sites-available/worker_processes auto;
http {
server {
listen 80;
server_name example.com;
root /var/www/html;
index index.html;
}
}sudo tail -f /var/log/nginx/access.log
sudo tail -f /var/log/nginx/error.log