Configuration microframework for NginX
All contents of this project are created by Alex Furnica and now they are composed in one repository
You can use this tool in 2 ways:
- automatic virtual host creation supported by
./site.sh
(see$ site.sh -h
for details) - manual including of necessary features (see items in
templates
for reference)
$ site.sh create [template] [name] [type]
Arguments:
template
- template used for virtual host. Can be:project
- virtual host is used for web access to a project (php
,mono
orquark
)proxy
- virtual host is used as frontend-balancer/reverse proxy for some backendservices
- virtual host for serving web management of common used tools suchphpMyAdmin
,GenghisApp
,ScoutRealtime
andLXC Web Panel
. You can disable unnecessary in generated virtual host configuration.
name
- virtual host' file nametype
- the type of virtual host. Used only whentemplate
isproject
. Can be:php
- generic php project (at the moment supports onlyphp-fpm
)mono
- virtual host for project served bymono-fastcgi
quark
- special config for projects based on Quark
Note, that this feature DOES NOT auto-restart
NginX
. You must restart it manually.
$ enableall.sh
Note, auto-enabling of all virtual hosts is included in
site.sh