MentDB, The digital brain.  About us Home
Back / All functions / Virtual host

Here you can manage your virtual host.

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 create "http" "demo" "default" "100"
mentdb
Application created with successful.
admin
app vhost add "http" "demo" "www.jpayet.re"
mentdb
1

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"}

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

Description

    To check if a virtual host already exist

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

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.




© 2012 - 2018 - Innov-AI.