Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Install Nginx—a high-performance web server—on an Arch Linux VPS—update with
pacman -Syu
install with
pacman -S nginx
and start with
systemctl start nginx
Enable with
systemctl enable nginx
open ports with
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
save with
iptables-save > /etc/iptables/iptables.rules
Test with
curl http://localhost
—expect Nginx page Configure a site in /etc/nginx/conf d/example com conf with
server { listen 80; server_name example.com; root /srv/http/example.com; }
On Vultr this hosts phpMyAdmin—add SSL with pacman -S certbot-nginx ensuring uptime with minimal resource use

Back to All Tips