disable-domain

Temporarily disable a virtual server When a server is disabled, it will become temporarily unavailable without being completely deleted. This program can be used to disable one server, specified with the --domain option. The exact features that will be disabled for the server are set on the module configuration page. The optional --why parameter can be followed by a description explaining why the domain has been disabled, which will be shown when anyone tries to edit it in Virtualmin.

Temporarily disable a virtual server#

When a server is disabled, it will become temporarily unavailable without being completely deleted. This program can be used to disable one server, specified with the --domain option. The exact features that will be disabled for the server are set on the module configuration page.

The optional --why parameter can be followed by a description explaining why the domain has been disabled, which will be shown when anyone tries to edit it in Virtualmin.

To have all sub-servers owned by the same user as the specified server disabled as well, use the --subservers flag.

Command line help#

virtualmin disable-domain --domain domain.name
 [--why "explanation for disable"]
 [--subservers]

Source: https://www.virtualmin.com/docs/development/api-programs/disable-domain/

  • virtualmin, domain, user, command line, script, module, disable
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...