Skip to content

mikeroq/vmgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vmgr

A shell script for easy virtual host management of your local development environment. Bundled with mkcert for automatic SSL certificate generation for local https sites.

All the conf files generated by this script are prefixed with vmgr-. This ensures that all conf files generated by vmgr will not conflict with existing files, and that vmgr will only process it's own generated files and not touch anything else.

Installation

Simply clone this repo and run vmgr-install.sh.

  git clone https://github.com/mikeroq/vmgr.git && cd vmgr
  ./vmgr-install.sh

The install script will copy the files from the repo to /etc/vmgr. vmgr will be symlinked to your user bin so you can run it from anywhere. Additionally mkcert will be called to install it's root CA for SSL cert generation.

Usage/Examples

vmgr create myawesomesite

This will produce the following:

  • A project directory created at ~/projects/myawesomesite
  • SSL certificate generated in ~/ssl_certificates
  • Virtual host vmgr-myawesomesite.vmgr.conf generated in /etc/apache2/sites-available
  • myawesomesite.vmgr added to your /etc/hosts pointing to 127.0.0.1
  • Virtual host will be enabled & apache restarted

Then you can browse to https://myawesomesite.vmgr

The following commands are available:

  • vmgr create
  • vmgr remove
  • vmgr disable
  • vmgr enable
  • vmgr list

Acknowledgements

Heavly inspired by/converted from

Utilizing

About

Virtual host manager for development with local SSL certificates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages