Aller au contenu

Setup Web Server#

On Ubuntu#

Bash
sudo apt update
sudo apt install apache2 -y

Where is the main page#

Bash
cd /var/www/html
ls -al

Set up HTTPS#

Bash
sudo a2enmod ssl
sudo systemctl restart apache2

cd /etc/apache2/sites-available

# Edit the SSL conf file if required

# Enable the site
a2ensite default-ssl.conf
systemctl reload apache2

Test#

Bash
curl -v https://[address]