https://github.com/amekusa/servers.d
Nginx server setup configurations
https://github.com/amekusa/servers.d
Last synced: 3 months ago
JSON representation
Nginx server setup configurations
- Host: GitHub
- URL: https://github.com/amekusa/servers.d
- Owner: amekusa
- Created: 2016-12-29T15:12:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T04:16:21.000Z (about 2 years ago)
- Last Synced: 2025-02-07T04:34:27.964Z (4 months ago)
- Language: Shell
- Size: 63.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# servers.d
Nginx server configurations## Setup
1. Clone the repo in `/etc/nginx`.
```sh
cd /etc/nginx
sudo git clone [email protected]:amekusa/servers.d.git
```2. Include `enable.conf` within `http` block in `/etc/nginx/nginx.conf`.
```nginx
# /etc/nginx/nginx.conf
...
http {
...
include servers.d/enable.conf;
}
```3. Create & Edit `LIST` file.
```sh
sudo cp LIST.sample LIST
sudo nano LIST
```4. Run `conf.sh` to generate `.conf` files for your sites.
```sh
sudo ./conf.sh
```3. Test & Reload Nginx.
```sh
sudo ./reload.sh
```