- Domain mapping in nginx
- Folder for website
- Clone this repos.
- copy
.env-test
to.env
- run
sudo chmod +x *.sh
- add your domain list to domains.txt one line per domian
- start by run
./run.sh server domains.txt
./run.sh server [file]
server
to generate server environments datadomains.txt
name of file with the list of domains inside.
HOME_DIRECTORY=/var/www
NGINX_DIRECTORY=/etc/nginx
NGINX_LOG_DIRECTORY=/var/log/nginx
PHP_FPM_VERSION=7.0
FILES_USER=www-data
FILES_GROUP=www-data
HTTP_PORT=80
HOME_DIRECTORY your website folder will create into this.
NGINX_DIRECTORY your nginx configuration for website will create under sites-* folder wihtin this.
NGINX_LOG_DIRECTORY your website log will create in this.
PHP_FPM_VERSION for php-fpm version
FILES_USER who's file owner
FILES_GROUP file owner group
HTTP_PORT http port default is 80