Direkt zum Inhalt

Lightsail automatically routing Static IP to another IP address

0

I have been attempting to move a Wordpress install to Lightsail. Everything would work find until I attempted to install an SSL certificate using the /opt/bitnami/bncert-tool Everytime I would install the cert, the site would become unreachable with the Wordpress "white screen" error.

I attempted to remove extra plugins, verified the database had the domain name and set the WP Site Name and Home in wp-config and verified there were no shenanigans in .htaccess

While testing, I came across two very odd behaviors. One, when I visited the domain (YoungFlowersSeattle.com) from Chrome on Android, it would always get redirected to showing the Static IP in the address. The second odd behavior is that when I entered the Static IP address directly in Chrome on Windows 11, then the Static IP would redirect to another (seemingly random) IP and then times out.

I have tried sudo /opt/bitnami/configure_app_domain --domain DOMAIN-NAME and sudo ./bnconfig --machine_hostname my-blog.com and neither command is found.
I have tried searching the mySQL database for the IP that I am being router to, and it is not there. I also checked wordpress-vhost.conf and htaccess in /opt/bitnami/apache/conf/vhosts

Note that this is even when starting brand new instances. I am at my wits end. This is on a single site Wordpress install

gefragt vor 9 Monaten138 Aufrufe
2 Antworten
0

Hi,

I can see that your site right now loads on both the Static IP and the domain-name correctly, but isn't secure i.e. (HTTPS is not enabled)

So do the redirection/wrong IP/etc issues also only occur after you install the SSL certificate? Or have the other on-host IP config issues been resolved now some other way?

Also to setup SSL on Lightsail WordPress instance, instead of bncert, you could try the Guided workflow option documented here - https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tutorial-launching-and-configuring-wordpress.html#set-up-wordpress-instance-website

Thanks.

AWS
EXPERTE
beantwortet vor 9 Monaten
0

Some things to look at:

  1. SSL Certificate Installation: The "white screen" error after installing an SSL certificate could be due to WordPress not properly recognizing the HTTPS protocol. This often happens when the site URL in WordPress settings hasn't been updated to use HTTPS.

  2. Static IP Redirection: The behavior you're seeing where the domain redirects to showing the Static IP in the address bar on Android Chrome could be related to how your DNS is configured or how WordPress is handling redirects.

  3. Static IP redirecting to another IP: This is unusual behavior and not typical for Lightsail static IPs. Static IPs in Lightsail are dedicated to your account and should only be attached to one instance at a time. The redirection you're experiencing might be due to a DNS propagation issue or a misconfiguration in your domain settings.

  4. Command not found errors: The commands you mentioned (configure_app_domain and bnconfig) are specific to Bitnami-powered instances. If these commands are not found, it's possible you're not using a Bitnami WordPress image or the commands have been moved or renamed in a recent update.

To troubleshoot these issues:

  1. Verify your DNS settings to ensure they're correctly pointing to your Lightsail static IP.

  2. Check your WordPress configuration, especially the site URL and home URL settings in the database and wp-config.php file.

  3. Review your web server configuration (Apache or Nginx) for any unexpected redirect rules.

  4. Ensure you're using the correct Bitnami WordPress image if you're relying on Bitnami-specific tools.

  5. Try clearing your browser cache and testing from different devices and networks to rule out local caching issues.

Sources
My Lightsail static IP is also assigned to another website which I don't own | AWS re:Post
Static IP addresses in Lightsail - Amazon Lightsail

beantwortet vor 9 Monaten

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.