Skip to content

FelixHutnyk/ApacheVHostManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apache Vhost Manager

Forked & Modified From vhost-manager

Usage

First install script

git clone https://github.com/CodingMachineDev/ApacheVHostManager.git
cd apache-vhost-manager
chmod 777 vhost
./vhost -install

Add vhost test.com

$ sudo vhost -r /var/www/test.com -url 'test.com' 'test.com'

'test-site' is a name of config ex: /etc/apache2/sites-available/test-site.conf

To use a specific template

$ sudo vhost -r /var/www/test-site.com -url 'test-site.com' -t ~/template.conf 'test-site'
  • -r is a directory
  • -url is the url to load
  • -t is the template file
  • -p the port which the website will be hosted
  • test-site is name of config to set in /etc/apache2/sites-available/mysite.conf

Templates should use the following parameters:

  • template.url
  • template.webroot
  • template.email
  • template.logpath
  • template.port

To remove a virtual host use

$ sudo vhost -rm test-site

To see help

$ sudo vhost -h

About

A Virtual Host manager for Apache2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages