You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
bin | 1 year ago | |
etc | 1 year ago | |
share/bin | 2 years ago | |
src | 1 year ago | |
.gitignore | 4 years ago | |
Makefile | 2 years ago | |
README.md | 1 year ago |
README.md
VHOST-MANAGER
vhost-manager
helps you to create apache2 vhosts.
Requirements
- PHP
- GCC
- whiptail
- wget
- make
Installation
$ sudo apt install gcc build-essential whiptail wget make
$ sudo apt install <php stuff>
$ git clone https://gitnet.fr/deblan/vhost-manager.git
$ cd vhost-manager
$ make
Configuration
$ cp etc/config.dist etc/config
$ vim etc/config
Usage
USAGE:
./bin/vhost-add [options]
OPTIONS:
-i Enable script interactivity
The script is interactive when no argument is given
-d The domain name
-a Aliase(s)
-m value Enable "http" or "https"
-r Force redirection of http to https
-p value Enable PHP with the given version (eg: 8.0)
-u value Username in the system
-h Show this help
Example:
$ sudo vhost-add
$ sudo vhost-add -m http -m https -r -d example.com -a www.example.com -p 8.0 -u example -i