Vhost
vhost:create
Creates a new Apache2 virtual host
Syntax
joomla vhost:create [--www WWW] [--http-port HTTP-PORT] [--ssl-port SSL-PORT] [--ssl-port SSL-PORT] [--template TEMPLATE] [--folder FOLDER] [--filename FILENAME] [--restart-command RESTART-COMMAND] [--] <site> Arguments
siteAlphanumeric site name. Also used in the site URL with .test domain
Options
--www=<value>Web server root
Default:/var/www--use-webroot-dirUses directory specified with --www as the site install dir
--http-port=<value>The HTTP port the virtual host should listen to
Default:80--ssl-port=<value>The port on which the server will listen for SSL requests
Default:443--template=<value>Custom file to use as the Apache vhost configuration. Make sure to include HTTP and SSL directives if you need boths
--folder=<value>The Apache2 vhost folder [default: /etc/apache2/sites-enabled]
Default:/etc/apache2/sites-enabled--filename=<value>The Apache2 vhost file name
--restart-command=<value>The full command for restarting Apache2
vhost:remove
Removes the Apache2 virtual host
Syntax
joomla vhost:remove [--www WWW] [--folder FOLDER] [--filename FILENAME] [--restart-command RESTART-COMMAND] [--] <site> Arguments
siteAlphanumeric site name, used in the site URL with .test domain
Options
--folder=<value>The Apache2 vhost folder [default: /etc/apache2/sites-enabled]
Default:/etc/apache2/sites-enabled--filename=<value>The Apache2 vhost file name
--restart-command=<value>The full command for restarting Apache2