-
Notifications
You must be signed in to change notification settings - Fork 1
Home
The project consist of a main bash script for generating nginx vhost config files.
The script intends to generate vhost config files, along with the links and log stuff to have a kind of automated vhost generator for nginx.
The scenario is that you may want to have a site, together with chances like accessing via http and/or https, and you find somehow hard to write, copy, etc new config from any other existing (or not) config file, together with copying/pasting and other tasks that are error prone. Also, you may have to go to some website, search the web, etc and deal with several stuff with sometimes difficult (or even wrong) instructions. Instead, you just have to define the necessary parameters for the config file for your vhost type to be automatically generated for you.
- Clone the repository anywhere (recommended from
/etc/nginx
). In any case, you will have to copy or move so the repository directory is/etc/nginx/<repo>
. This is what we call the working directory. - Duplicate the
defaults.inc_dist
file and name itdefaults.inc
, which will have your common default variables for any vhost. - Set any defaults for your needs, theorically common variables for most (or all) sites. When creating a vhost definition, you can redefine there any variable existing in this file, even if it is not in the example of the definition.