Website only opens with www, no support when www is omitted

Well noted Senior Man, getting another cert to Match both domains should be after the expiration of the current cert, I have tried uninstalling completely and reinstalling, still get served only "www.adaoma.shop".

You can do it now (or whenever you want).

10 Likes

FYI - @lordmalcolm if you test with Staging Environment - Let's Encrypt you will be less likely to run into Rate Limits - Let's Encrypt

3 Likes

With that config, it might be difficult to get any cert.
It seems to redirect itself into a loop.

What does that current file look like?

9 Likes

Hi @lordmalcolm @rg305 @Bruce5051
I have been sidetracked a bit recently. And I certainly do not want to interfere with your resolution... Or Rudy or Bruce's posts. They are valid.
BUT... your vhost for port 80 posted just above...

I think what @rg305 is saying is:

RedirectMatch permanent ^/(.*)$ http://www.adaoma.shop/$1       

Should look like:

RedirectMatch permanent ^/(.*)$ https://www.adaoma.shop/$1       

Notice the https

This way your server wont get in to an endless loop that causes havoc.
If this doesn't make sense, please let us know.

We seek a resolution of your request.
Best to you and yours.

8 Likes

Is there a way I can check the number of rates I have exhausted?

crt.sh | adaoma.shop

Let's Debug (letsdebug.net)

But if you are going to test, use the staging environment [until it passes all your tests].

8 Likes

I have read so many uninstall processes from the online and on community.letsencrypt, however I do not want to go via an uninstall process again as am scared of doing so on my VM.

With regards to the steps provided in getting an appropriate redirect for https://adaoma.shop/ by @rg305, I'm interested in undertaking the step 2 provided. However, the step appears a little bit complex to me.

  Step #2: Build a vhost (to serve the redirection to "`www` ") for site `https://adaoma.shop`
  OR modify the existing HTTPS vhost and ensure both names are being served and add the redirection to "`www` " therein.

Do I need to create another [ adaoma.shop.conf ] file? Or just add another vhost configuration below the first? How will the vhost configuration differ from the first? Is it on the RedirectMatch?

    sudo certbot certonly --apache
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    The requested apache plugin does not appear to be installed
    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.
    ubuntu@ip-172-31-21-87:~$ sudo certbot renew --dry-run
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Processing /etc/letsencrypt/renewal/www.adaoma.shop.conf
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Failed to renew certificate www.adaoma.shop with error: The requested apache plugin does not appear to be installed
    
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    All simulated renewals failed. The following certificates could not be renewed:
      /etc/letsencrypt/live/www.adaoma.shop/fullchain.pem (failure)
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    1 renew failure(s), 0 parse failure(s)
    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.

Those two are equal.

The only difference is that one will redirect to the other.
But both need a cert for their name.

7 Likes

Let's start with this:
sudo certbot certonly -d www.adaoma.shop -d adaoma.shop --dry-run

7 Likes

Oh!..., I see, the d flag does the magic. A Happy Sunday to you all.

2 Likes

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