Virtual host
Add, list, check and delete the virtual hosts of the web server, so that several domain names can be served by one MentDB server.
app vhost addapp vhost showapp vhost existapp vhost delete

app vhost add <protocol> <context> <hostname>


Description

    To add a new virtual host

Parameters

    protocol:   The protocol (http|https) - string - required
    context:   The context - string - required
    hostname:   The hostname - string - required
admin
app vhost add "http" "demo" "www.jpayet.re";
mentdb
1
Used in use cases (2 recipes)

    Web application developer › Give the app its own host name
    Application developer › New web application on its own domain
Often used with

    app vhost exist  ·  app create  ·  app exist  ·  app vhost show  ·  app webserver restart  ·  group add  ·  group grant user  ·  group grant_all script

app vhost show <protocol> <context>


Description

    To show virtual hosts

Parameters

    protocol:   The protocol (http|https) - string - required
    context:   The context - string - required
admin
app vhost show "http" "demo";
mentdb
{"www.jpayet.re": "demo"}
Used in use cases (2 recipes)

    Web application developer › Give the app its own host name
    Application developer › Inventory of the web applications
Often used with

    app vhost exist  ·  app exist  ·  app show  ·  app vhost add  ·  app webserver show_all_blocked_remote_ips  ·  app webserver show_all_remote_ips  ·  json fields  ·  string regexp_count

app vhost exist <protocol> <context> <hostname>


Description

    To check if a virtual host already exists

Parameters

    protocol:   The protocol (http|https) - string - required
    context:   The context - string - required
    hostname:   The hostname - string - required
admin
app vhost exist "http" "demo" "www.jpayet.re"
mentdb
1
Used in use cases (3 recipes)

    Web application developer › Give the app its own host name
    Application developer › Inventory of the web applications
    Application developer › New web application on its own domain
Often used with

    app exist  ·  app vhost add  ·  app vhost show  ·  app create  ·  app show  ·  app webserver restart  ·  app webserver show_all_blocked_remote_ips  ·  app webserver show_all_remote_ips

app vhost delete <protocol> <context> <hostname>


Description

    To delete a virtual host

Parameters

    protocol:   The protocol (http|https) - string - required
    context:   The context - string - required
    hostname:   The hostname - string - required
admin
app vhost delete "http" "demo" "www.jpayet.re";
mentdb
1
admin
app delete "http" "demo";
mentdb
Application deleted with successful.
Used in use cases (1 recipe)

    Web application developer › Tear the app down and prove it is gone
Often used with

    app delete  ·  app exist  ·  app show  ·  app webserver show_all_blocked_remote_ips  ·  app webserver show_all_remote_ips  ·  group exist  ·  group remove  ·  group ungrant_all script