I have a wordpress multisite via Bitnami (apache) and I have configured it to run both multiple sites and subdomains.
When I created the first subdomain and generated a new certificate everything worked fine. The subdomain and all other websites on the WPMS were secured.
I just added a new subdomain and I have been received this error:
without knowing anything else than what you have mentioned, and assuming nothing about what background work you have done, my first suspicion would be that it’s your apache configuration. You did not state that you created a new apache entry for the new subdomain/site and reload.
while I have some limited experience with bitnami images, its only enough to know that they use configurations that are not “standard” or expected when configuring things, as compared to a stock linux image. on a stock Debian-based install, one would create a new .conf file in /etc/apache2/sites-available that contains the new subdomain, and the appropriate directives pointing at the new keys, and then set a symlink in apache’s sites-enabled directory to that conf file, and then reload apache.
if this is not helpful or does not work, then more detail would probably be necessary to diagnose/answer.
thinking more about it, it could be a DNS issue too, if you do not have DNS entries for your subdomain set up. Which one you examine first is up to you, but without knowing more about the work you have already done it is difficult to answer conclusively.
When I added the first subdomain to the network of unique domains, I added the following:
<VirtualHost *:80>
ServerName subdomain.website.ca
ServerAlias subdomain.website.ca
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
Include “/opt/bitnami/apps/wordpress/conf/httpd-app.conf”
<VirtualHost *:443>
ServerName tech.buildanonlinebusiness.ca
ServerAlias *.tech.buildanonlinebusiness.ca
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
SSLEngine on
SSLCertificateFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.crt"
SSLCertificateKeyFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.key"
Include “/opt/bitnami/apps/wordpress/conf/httpd-app.conf”
When I added the new subdomain, I believe I took all the same steps as before. Added my A records, inserted the similar code into the httpd-vhosts.conf.
Was there something I missed?
Also, I’ve tried:
<VirtualHost *:80>
ServerName subdomain.website.ca
ServerAlias *.subdomain.website.ca
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
Include “/opt/bitnami/apps/wordpress/conf/httpd-app.conf”
<VirtualHost *:443>
ServerName tech.buildanonlinebusiness.ca
ServerAlias *.tech.buildanonlinebusiness.ca
DocumentRoot "/opt/bitnami/apps/wordpress/htdocs"
SSLEngine on
SSLCertificateFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.crt"
SSLCertificateKeyFile "/opt/bitnami/apps/wordpress/conf/certs/new_server.key"
Include “/opt/bitnami/apps/wordpress/conf/httpd-app.conf”
try to access the new domain without encryption, then:
try with a self-signed cert, then:
try with existing LE certs, which you should verify exist are in the appropriate place, perms, etc.