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 Answer
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
EXPERT
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions