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 Antwort
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
EXPERTE
beantwortet vor 3 Monaten
profile pictureAWS
EXPERTE
überprüft vor 3 Monaten
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen