Skip to content

A sample script to automatically create nginx configuration file to set up all website on.

License

Notifications You must be signed in to change notification settings

BaseMax/NginxWebAutoConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Nginx Auto Conf

NginxWebAutoConfig

A sample script to automatically create nginx configuration file to set up all website on.

Using

$ git clone https://github.com/BaseMax/NginxWebAutoConfig
$ cd NginxWebAutoConfig
$ nano AutoConf.php
$ php AutoConf.php
$ sudo service nginx restart / sudo systemctl restart nginx

Featues

  • Support HTTPS, HTTP2
  • Support www.
  • Redirect all http requests to https
  • Redirect all www requests to non-www
  • Support Subdodmains
  • Support PHP-fpm
  • Support Nginx proxy (e.g: for nodejs)

Max Base

My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. (Max Base)

Asrez Team

A team includes some programmer, developer, designer, researcher(s) especially Max Base.

Asrez Team