Web servers are essential for hosting websites and applications. Debian supports both Apache and Nginx, two of the most popular web servers. This guide explains how to install and configure them on HostPalace servers.
sudo apt update && sudo apt upgrade -y
sudo apt install apache2 -y
Enable Apache at boot:
sudo systemctl enable apache2
Check status:
sudo systemctl status apache2
sudo apt install nginx -y
Enable Nginx at boot:
sudo systemctl enable nginx
Check status:
sudo systemctl status nginx
Open your browser and go to http://your-server-ip. You should see the default Apache or Nginx welcome page.
sudo ufw allow 'Apache Full'
sudo ufw allow 'Nginx Full'
Note: HostPalace Debian servers are optimized for both Apache and Nginx, giving clients flexibility to host any type of website or application.