/ Published in: Bash
This is a bash file to Create or Delete Virtual Host in Ubuntu system and Apache server.
This file open the Virtual Host in "/home/{user}/www/{domain}"
To run this file you need to make this file executable:
> sudo chmod u+x /path/to/file
Then whenever you need to open a new host just go to terminal and run the file:
> sudo /path/to/file create domain.dev.com
To delete host:
> sudo /path/to/file delete domain.dev.com
This file open the Virtual Host in "/home/{user}/www/{domain}"
To run this file you need to make this file executable:
> sudo chmod u+x /path/to/file
Then whenever you need to open a new host just go to terminal and run the file:
> sudo /path/to/file create domain.dev.com
To delete host:
> sudo /path/to/file delete domain.dev.com