IP address is not secure and does not redirect to the domain name.

I setup wordpress from the marketplace. When I type the name of my domain into the browser, I have a secure site, but when I type the IP address, it doesn't redirect and it is not secure. How can I fix this?

1 Reply

While this StackOverflow post suggests that it might be possible, this is not possible to achieve using CertBot/LetsEncrypt since it cannot generate an SSL certificate for "bare IP addresses":

That said, you might be able to create a server redirect within NGINX. Within the server block for your Fully Qualified Domain Name (FQDN), you could add another entry or alias so that your HTTP://$IPADRESS resolves to HTTPS://$FQDN_WEBSITE

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct