Skip to content

empty var $sitesAvailabledomain #39

@AmannMax

Description

@AmannMax

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions