What is Navajo.js
Navajo.js is a Apache2 Vhost generator written in Nodejs. It can be used to generate various .conf
files from different templates.
Installation
Navajo required Nodejs 6>. You can install Navajo via npm.
npm i navajo -g
Arguments
-d
- Assigns a domain for the vhost
-p
- Assigns the path to the vhost root directory
--port
- Assigns a port to the new generated vhost
Functions
navajo register
- Registers a domain in the hosts file
Usage
navajo -d my-domain.com -p /var/www/my-domain/public --port 80
sudo navajo register
or simply
navajo
to use the inbuilt generator
IMPORTANT NOTE
If you want to run navajo directly in the apache folder or you want to create a vhost folder inside a directory with sudo-restrictions
please run the script as sudo
.