Keywords: WordPress + NGINX + SSL - Virtual Machines - How to - Other
I need a add another wordpress app to the virtual machine. Wordpress+NGINX+SSL. It should be really easy.
- add a new app to opt/bitnami/apps/2nd_wordpress_site
- create an additional mysql database and populate it
- modify the file /opt/bitnami/apps/newsite/conf/nginx-vhost.conf so it indicates the website name and ports.
- modify the opt/bitnami.nginx/conf/bitnami/nginx-prefix.conf. so it has a pointer to the new site directory.
- Restart NGINX
Easy..... However. I get an error.
nginx: [emerg] "root" directive is duplicate in /opt/bitnami/apps/site2/conf/nginx-prefix.conf:2
/opt/bitnami/nginx/scripts/ctl.sh: 77: [: Illegal number:
/opt/bitnami/nginx/scripts/ctl.sh : Nginx could not be started
I took a look at the file /opt/bitnami/apps/site2/conf/nginx-prefix.conf. This is what it looks like.
The root directive points NGINX to the HTDOCS directory, which has the wordpress file in it. I guess this is conflicting with the first site root directory which is located in a differet nginx-prefix.conf file.
The file /opt/bitnami/nginx/conf/bitnami/bitnami-apps-prefix.conf looks like this.
So I am pointing to two different "Root" declarations. One in the site 1 directory and the other in the site2 directory.
How do I add a second "Root" deceleration so that NGINX can see the new second site data?