- Newest
- Most votes
- Most comments
I understand you're experiencing issues with your WordPress Multisite setup on Amazon Lightsail after attempting to add an SSL certificate for a subdomain. This is a challenging situation, but let's try to address it step by step.
-
First, it's important to note that when using Amazon Lightsail with WordPress, SSL/TLS certificates are typically managed through Lightsail's load balancers, not directly on the WordPress instance. If you were trying to add the certificate directly to your WordPress instance, this could have caused the issue.
-
For Lightsail WordPress instances, the recommended way to enable HTTPS is by using the Bitnami HTTPS configuration tool (bncert). This tool automates the process of requesting and installing SSL/TLS certificates from Let's Encrypt.
-
If you've inadvertently made changes that have broken your site's connection, you may need to revert to a previous snapshot of your instance if you created one before making these changes.
-
To fix the current issue and properly set up SSL for both your main domain and subdomain:
a. Ensure you have a static IP attached to your Lightsail instance. b. Verify that your DNS settings are correctly pointing to this static IP for both aiaii.site and cointrading.aiaii.site. c. Use the bncert tool to configure HTTPS for both domains simultaneously. You can do this by running the command
sudo /opt/bitnami/bncert-toolin your Lightsail instance's terminal. d. When prompted, enter both your primary domain and subdomain separated by a space. -
The bncert tool will handle the certificate request, validation, and installation process for both domains. It will also configure the necessary redirects from HTTP to HTTPS.
-
If you're still unable to access your site after following these steps, you may need to check your WordPress configuration files for any incorrect settings that might be preventing access.
Remember, when working with SSL certificates and server configurations, it's always a good idea to create a snapshot of your instance before making changes. This allows you to easily revert if something goes wrong.
If these steps don't resolve your issue, you may need to contact AWS Support for more detailed assistance with your specific Lightsail configuration.
Sources
Secure your WordPress site with HTTPS on Lightsail - Amazon Lightsail
Certificates - Amazon Lightsail
Launch and configure a WordPress instance on Lightsail - Amazon Lightsail
answered 2 years ago
Relevant content
asked 3 years ago
