Install Nginx on Arch Linux
This guide walks through installing and starting Nginx on Arch Linux.
Step 1 – Update the system
pacman -Syu --noconfirm
Step 2 – Install Nginx
pacman -S --noconfirm nginx
Step 3 – Start and enable Nginx
systemctl enable --now nginx
Step 4 – Firewall (UFW or nftables)
ufw allow 80/tcp
ufw allow 443/tcp
ufw reload
Step 5 – Verify
nginx -v
curl -I http://localhost
Configuration: /etc/nginx/nginx.conf, virtual hosts in /etc/nginx/sites-available/.