Softaculous


Topic : How to create Virtual Hosts in Webuzo


Posted By: vtolenti89 on September 29, 2019, 9:16 am
Hello,

this is my first post in here.  :xd:

I am trying to figure out how to host different webapps (nodejs) in my server which is managed via Webuzo.  I am new to that, and my idea was to create different Virtual Hosts for each app.

The main goal at the end is to be able to make API calls like the following:

XXX.XXX.XXX/app1/
XXX.XXX.XXX/app1.staging/
XXX.XXX.XXX/app2/
XXX.XXX.XXX/app2.staging/

And the calls would be redirected to the correct nodejs application

Thus, I have the following questions:

1. Is it the correct approach? One Virtual Host for each webapp / staging?
2. How can you create Virtual Hosts in Webuzo?
3. Do you need to create a subdomain to each Virtual Host?
4. Are the the environment variables set in each Virtual Host accessible by other Virtual Hosts? (I hope not - This is necessary for API Keys which offer a production and a test key)

Thanks in advance

Posted By: Dhanya on September 30, 2019, 6:34 am | Post: 1
Hi,

>>1. Is it the correct approach? One Virtual Host for each webapp / staging?
Unfortunately, there is no option in Webuzo to create each one host for each webapp/staging. The virtual host code block for running the websites will be added in the default web server virtual host file(i.e webuzoVH.conf).

>>2. How can you create Virtual Hosts in Webuzo?
Unfortunately, there is no option in Webuzo to create each one host for each webapp/staging.

>>3. Do you need to create a subdomain to each Virtual Host?
Unfortunately, there is no option in Webuzo to create each one host for each webapp/staging. Each subdomain when created will be added in the default virtual host file.

>>4. Are the the environment variables set in each Virtual Host accessible by other Virtual Hosts? (I hope not - This is necessary for API Keys which offer a production and a test key)
In Webuzo only default virtual host will be used.

If you want to add any extra code block for your webapp then you may add the code block in a conf file and add the extra conf in the web server you have set default on your server from Webuzo enduser panel -> Extra Configuration page as shown below:
http://www.webuzo.com/docs/endusers/add-extra-configuration-file

Let us know if you have any further queries.

Posted By: vtolenti89 on October 1, 2019, 10:26 am | Post: 2
Thanks for the info.

Posted By: Dhanya on October 4, 2019, 6:59 am | Post: 3
Hi,

Glad to help you.

Let us know if you face any issues further.

Posted By: vtolenti89 on October 5, 2019, 10:00 am | Post: 4
It is all working fine now.

I managed to configure the reverse proxy.

Posted By: Dhanya on October 7, 2019, 7:03 am | Post: 5
Hi,

Glad to know that your issue has been resolved.

Let us know if you face any issues further.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.