INFO 3601: Platform Technologies II
DigitalOcean Deployment & Apache Configuration
ssh-keygen -t ed25519 -C "yourname@uwi.edu"
A trini.dev <your_ip>
A *.trini.dev <your_ip>
ssh -i ~/.ssh/id_ed25519 root@trini.dev
apt update && apt upgrade -y
apt install apache2 -y
ufw allow 'Apache Full'
systemctl enable apache2
apt install certbot python3-certbot-apache -y
certbot certonly --manual --preferred-challenges=dns \
-d "*.trini.dev" -d "trini.dev"
<VirtualHost *:443>
ServerName trini.dev
ServerAlias *.trini.dev
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/trini.dev/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/trini.dev/privkey.pem
UseCanonicalName Off
VirtualDocumentRoot /var/www/html/%1
</VirtualHost>
mkdir -p /var/www/html/app1 /var/www/html/app2
echo "<h1>Welcome to App1</h1>" > /var/www/html/app1/index.html