Securing a Static Public IP Address for a Bitnami WordPress E-commerce Website?

0

I am currently running a Bitnami WordPress e-commerce website on a EC2 instance, with a domain configured and allocated a static IP address, the domain has an SSL on it but when I navigate to the Static IP Address it shows not secure. I read that is a bad idea to have a public IP, so how can I secure the public static IP? I thought that by having the domain attached to the IP, that would also be a secured IP, but that is not the case. I read that by having a load balancer, somehow I could remove the IP and have it private, but I am checking if there is a simpler solution before I dive into a more advance solution. Sometimes I use SSH and FTP to access the server to modify files. How will that work if I make the IP private? Can anybody point me on the right direction? Thanks

1 回答
0

Hello.

I don't think SSL certificates are used to protect IP addresses because they certify domains.
Therefore, I think it is a good idea to configure the web server to redirect to "HTTPS://Domain.com" when an HTTP access occurs using an IP address.
For example, if you use Apache, if you configure the following settings, when an access using an IP address occurs, it will be redirected to the domain.

<VirtualHost *:80>
    ServerName [IP Address]
    RewriteRule ^/(.*) https://domain.com/$1 [R=302,L]
</VirtualHost>
profile picture
专家
已回答 3 个月前
profile pictureAWS
专家
已审核 3 个月前
  • I am on a Debian GNU/Linux Server and I used

    sudo /opt/bitnami/bncert-tool

    to set up the SSL will that work to create a redirect from a public static ip> to the domain?

  • From what I remember, that command set up a domain redirect from HTTP to HTTPS, but I don't think it set up a redirect from an IP address to a domain.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则