sudo nano /etc/apache2/ports.conf # add or ensure: Listen 80 Listen 50005 ######################################## sudo tee /etc/apache2/sites-available/elearning-80.conf >/dev/null <<'EOF' ServerName elearning.uegcl.go.ug # Serve ACME challenges for Let's Encrypt Alias /.well-known/acme-challenge/ /var/www/html/.well-known/acme-challenge/ Options None AllowOverride None Require all granted ProxyPreserveHost On ProxyPass "/" "http://127.0.0.1:50005/" ProxyPassReverse "/" "http://127.0.0.1:50005/" EOF sudo a2enmod proxy proxy_http headers sudo a2ensite elearning-80.conf sudo systemctl reload apache2 #######################################################