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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠