Vhost

vhost:create

Creates a new Apache2 and/or Nginx virtual host

Syntax

joomla vhost:create [--www WWW] [--http-port HTTP-PORT] [--disable-ssl] [--ssl-crt SSL-CRT] [--ssl-key SSL-KEY] [--ssl-port SSL-PORT] [--php-fpm-address PHP-FPM-ADDRESS] [--] <site>

Arguments

site
Alphanumeric site name. Also used in the site URL with .test domain

Options

--www=<value>
Web server root
Default: /var/www
--http-port=<value>
The HTTP port the virtual host should listen to
Default: 80
--disable-ssl
Disable SSL for this site
--ssl-crt=<value>
The full path to the signed cerfificate file
Default: /etc/apache2/ssl/server.crt
--ssl-key=<value>
The full path to the private cerfificate file
Default: /etc/apache2/ssl/server.key
--ssl-port=<value>
The port on which the server will listen for SSL requests
Default: 443
--php-fpm-address=<value>
PHP-FPM address or path to Unix socket file, set as value for fastcgi_pass in Nginx config
Default: unix:/opt/php/php-fpm.sock

vhost:remove

Removes the Apache2 and/or Nginx virtual host

Syntax

joomla vhost:remove <site>

Arguments

site
Alphanumeric site name, used in the site URL with .test domain

Need Help?

Let our developers personally assist you. You can ask development related questions in our Support Center. Only for Business or Agency subscribers.