IMPORTANT, please fill the questions
We assume you are using Bitnami to deploy your application.
Which version of the application are you using?: Bitnami WordPress Multisite 5.3.2-3
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX): AWS Lightsail one click WP Multisite
Have you installed any plugin or modified any configuration file?: No plugin installed, defined primary domain and disabled bnconfig, modified httpd-vhosts.conf in apps/wordpress/conf and wp-config.php in htdocs
Describe here your question/suggestion/issue (expected and actual results): Expected result: installed one Letś Encrypt certificate for all domains (actualy there are two) of one Wordpress Multisite – which contains one primary domain and one subdomain that is mapped to different, external domain. Actual result: errors, mostly that due to possible firewall, no certificate installed
Steps to reproduce the issue (if relevant):
- Created WP multisite on amazon Lightsail, defined primary domain, created static IP
- Configured A records (@, * and www) in NameCheap DNS, pointed to Static IP; did this both for primary domain and „sub/site“
Primary WP site/domain: testovaci.club
subsite mapped to different domain: testdomena.site
I am able to log in to both dashboards – although I had to put
define('COOKIE_DOMAIN', false); to wp-config file
I noticed that sometimes I am unable to log-in to the testdomena.site dashboard from address: testdomena.site/wp-admin as it loops it to www.testdomena.site(wp-login. As soon as I removed "www“ DNS record, this was solved.
I added add a new virtual host fordomain testdomena.site, as mentioned in this tutorial called Configure Blogs For Different Domains With Different SSL Certificates
But I did not put this code:
Include "/opt/bitnami/apps/wordpress/conf/httpd-vhosts.conf" to _/opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf _ as I think the certificates must be issued first (or not?)
Started SSL install process via SSH, followed this tutorial: https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/
I used alternative approach, (LEGO). The process always ended like this:
2020/05/10 16:07:58 [INFO] Unable to deactivate the authorization: https://acme-v02.api.letsencrypt.org/acme/authz-v3/44945239402020/05/10 16:07:58 Could not obtain certificates:error: one or more domains had a problem:[testovaci.club] acme: error: 400 :: urn:ietf:params:acme:error:connection :: During secondary validation: Timeout during connect (likely firewall problem), url: bitnami@ip-172-26-14-180:/tmp$
What should I do differently please?
Here is the generated suport code: b23fa4f1-c03b-7635-78c7-925d1ad59366
Thank you in advance,
Maybe there is a better / different way how to map all subsites from WP Multisite to different (external) domains? I would like to find the proper way as I want to set up Multisite with approx. 3–4 subsites mapped to external domains.