Expressjs vhost manager

22 Views Asked by At

I need to find a way to manage subdomains using code.

For exemple, I want to have an API on mydomain.com that will manage running vhost. A request to API.mydomain.com/create would create vhost for a new subdomain (the code would be something like app.vhost.create, for exemple).

Is there a way to dynamically manage vhost on running app using code?

(If the question is not clear please tell me, English isn't my main language).

If it's not possible, I would like to do something similar but instead of subdomains, using routers.

If it's not possible, I would like to do something similar but instead of subdomains, using routers.

0

There are 0 best solutions below