1 2 |
sudo apt-get update sudo apt-get install apache2 |
sudo apache2ctl configtest
sudo ufw app list
sudo nano /etc/apache2/apache2.conf
Inside, at the bottom of the file, add a ServerName
directive, pointing to your primary domain name. If you do not have a domain name associated with your server, you can use your server’s public IP address:
1 |
ServerName server_domain_or_IP |
Example:-