Skip to main content

Posts

Showing posts from December, 2021

My Nginx crash course

Nginx is a lightweight and powerful web server. It is commonly used as a reverse proxy and load balancer. Install Nginx using your package manager. On Ubuntu: sudo apt install nginx To start the service: sudo systemctl start nginx To check status: sudo systemctl status nginx Open your browser and navigate to your server IP. If you see the Nginx welcome page, it is working. Main configuration file is typically located at: /etc/nginx/nginx.conf Server blocks are usually inside: /etc/nginx/sites-available/ A simple server block example: server { listen 80; server_name example.com; root /var/www/html; index index.html; } After editing configuration: sudo nginx -t sudo systemctl reload nginx Nginx is fast, efficient, and production ready. It is a great addition to your toolbox. Disclaimer: If you follow the information here, there is no warranty , I am not liable if it deletes your data, gets you hacked, burns your house down or anything else. If you follow the...