Skip to content

spandansingh/virtualhost-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

VirtualHost Script

VirtualHost Script is a bash script by which you can create virtualhost for Linux (Debian/Ubuntu) Platform.

Features

  • Create virtual host hassle free just by giving the address of document root.
  • List all the virtual host at once.
  • Delete virtual host easily.

Installing

[Manual]

[GIT Clone]

git clone git://github.com/spandansingh/virtualhost-script.git

Copy the virtualhost to /usr/local/bin to make the command work globally.

Documentation

1) sudo virtualhost create <hostname> <document root>
eg: sudo virtualhost create abc.local ~/websites/abc

2) sudo virtualhost list 

3) sudo virtualhost delete <hostname>
eg: sudo virtualhost create abc.local

That's it. Enjoy !

About

bash script for creating virtualhost

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages