Skip to content

iamapinan/auto-website-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX AUTO GENERATE

This script will automatics create

  • Domain mapping in nginx
  • Folder for website

Install instructions

  • 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

Options explain

  • ./run.sh server [file]
  • server to generate server environments data
  • domains.txt name of file with the list of domains inside.

Configurations

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

Created by

Apinan Woratrakun 📮 [email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published