If i want to create a VH like this, no problem at all.
user@ubuntu:/usr/local/bin$ sudo vhost create test
Added content to /var/www/test/phpinfo.php
New Virtual Host Created
Host added to /etc/hosts file
Enabling site test.
To activate the new configuration, you need to run:
service apache2 reload
[ ok ] Reloading apache2 configuration (via systemctl): apache2.service.
Complete!
You now have a new Virtual Host
Your new host is: http://test
And its located at /var/www/test
user@ubuntu:/usr/local/bin$
But if i only say "create" without hostname i get this issue:
user@ubuntu:/usr/local/bin$ sudo vhost create
Please provide domain. e.g.dev,staging
test2
/etc/apache2/sites-available/.conf
This domain already exists.
Please Try Another one
user@ubuntu:/usr/local/bin$
The script generates a .conf file without domainname
If i want to create a VH like this, no problem at all.
user@ubuntu:/usr/local/bin$ sudo vhost create test
Added content to /var/www/test/phpinfo.php
New Virtual Host Created
Host added to /etc/hosts file
Enabling site test.
To activate the new configuration, you need to run:
service apache2 reload
[ ok ] Reloading apache2 configuration (via systemctl): apache2.service.
Complete!
You now have a new Virtual Host
Your new host is: http://test
And its located at /var/www/test
user@ubuntu:/usr/local/bin$
But if i only say "create" without hostname i get this issue:
user@ubuntu:/usr/local/bin$ sudo vhost create
Please provide domain. e.g.dev,staging
test2
/etc/apache2/sites-available/.conf
This domain already exists.
Please Try Another one
user@ubuntu:/usr/local/bin$
The script generates a .conf file without domainname