Unable to port forward port 80 during HTTPS setup

OS Name/Version: Ubuntu Server / 24.04.3

Product Name/Version: AMP / v2.6.3.2

Problem Description:

When setting up AMP on Linux it asks me if I want to configure HTTPS. After this it asks to port forward port 80 and port 443. However my brother has set up a bunch of web servers and is using port 80 (He said he’s not using port 443, so I could use that). As I can’t use port 80, Lets Encrypt shows a error saying it failed to request a certificate:

Requesting a certificate for amp.jadentailor.com

Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
  Domain: amp.jadentailor.com
  Type:   unauthorized
  Detail: 82.44.52.5: Invalid response from http://amp.jadentailor.com/.well-known/acme-challenge/NfU08laK15A2JDpSmmJVZnVCKcEuM75W-4V_eU99gN4: 404

Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[Error/1] Certbot failed with code 1
Failed to configure nginx. Please check /root/getamp-20251108-121301.log . Aborting...

Is there a workaround or fix to this issue?

Steps to reproduce:

  • Step 1) Run the command: getamp postSetupHTTPS as root.
  • Step 2) Press Y to enable HTTPS.
  • Step 3) Type in my domain.
  • Step 4) Type in my email address.
  • Step 5) It then asks to port forward port 80 and 443 TCP (And I cant forward port 80).
  • Step 6) Then it requests a certificate to my domain, and fails.

If you are unable to forward port 80 then you will be unable to use the automated HTTPS setup. You will have to set up HTTPS yourself manually using DNS verification.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.