Keywords: WordPress + NGINX + SSL - Google Cloud Platform - Technical issue - Other
When I try to create vhosts following instructions here https://docs.bitnami.com/google/infrastructure/nginx/configuration/create-vhost-nginx/ things break. And I follow the instructions diligently. So, I'd like to know what I'm missing.
After doing the first steps of commenting out the niginx-prefix line in /opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf as instructed
And then adding the vhost configuration in /opt/bitnami/nginx/conf/bitnami/bitnami-apps-vhosts.conf as instructed with 'wordpress' instead of APPNAME
And then going to the Update the application’s nginx-app.conf file at /opt/bitnami/apps/wordpress/conf/nginx-app.conf with the revised application URL if necessary. I find the directive as required already there
And I had earlier reconfigured my /opt/bitnami/apps/wordpress/htdocs/wp-config.php file with actual domain names so I had my website up and alive on ssl
And then I get after trying to restart nginx
nginx: [emerg] cannot load certificate "/opt/bitnami/apps/wordpress/conf/certs/server.crt": BIO_new_fi
le() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/opt/bitnami/ap
ps/wordpress/conf/certs/server.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
/opt/bitnami/nginx/scripts/ctl.sh: 77: [: Illegal number:
/opt/bitnami/nginx/scripts/ctl.sh : Nginx could not be started
So, I go back and comment out the vhosts directive in the /opt/bitnami/nginx/conf/bitnami/bitnami-apps-vhosts.conf and then
Uncomment the line I had commented out earlier in the /opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf
to get things back where they were before, without virtual hosts configuration
Now when I hit restart nginx things are back to square one, but I have no virtual hosts. I need to run another two wordpress sites, and some custom html pages sites, but can't do them.
And I want to do them with ssl.
Help would be much appreciated.