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 add <protocol> <context> <hostname>
Description
To add a new virtual host
To add a new virtual host
Parameters
protocol: The protocol (http|https) - string - required
context: The context - string - required
hostname: The hostname - string - required
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
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 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
To show virtual hosts
Parameters
protocol: The protocol (http|https) - string - required
context: The context - string - required
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
Web application developer › Give the app its own host name
Application developer › Inventory of the web applications
app vhost exist <protocol> <context> <hostname>
Description
To check if a virtual host already exists
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
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
app vhost delete <protocol> <context> <hostname>
Description
To delete a virtual host
To delete a virtual host
Parameters
protocol: The protocol (http|https) - string - required
context: The context - string - required
hostname: The hostname - string - required
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.
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
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
