Skip to content
Easy to manage multiple php servers behind Nginx.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
.gitignore
README.md
deploy.sh

README.md

inginx.conf

Easy to manage multiple php servers behind Nginx.

NOTICE: Before you start, please backup your nginx/conf directory.

Deploy

Automatic way

You can simply download deploy.sh on your server and run it. The deploy.sh could find your nginx/conf directory and deploy automatically, after your confirmed.

NOTICE: The deploy.sh based on wget and unzip.

./deploy.sh

You can also define the deploy directory by yourself:

./deploy.sh /etc/nginx/conf

Manual way

You can download this project, extract it by unzip, then copy conf to your nginx/conf directory.

cp conf /usr/local/nginx/conf

Quick start

1. Create a new server.

You can create a new server by simply make a copy from the example file.

cd /usr/local/nginx/conf/servers
cp server.conf.example myserver.conf

Edit myserver.conf and setup server_name and root.

2. Restart your nginx service.

TODO

  1. add more settings
  2. add comments
  3. support other languages
You can’t perform that action at this time.