Change the config.inc name to config.inc.example.

This commit is contained in:
2018-05-12 06:05:29 +09:00
parent 592bd84495
commit c7b101f3dc
3 changed files with 72 additions and 66 deletions
+3
View File
@@ -8,6 +8,9 @@
## How to Install?
1. Install dependency library. (If you have already install it, omit it.)
2. Edit for config.inc file. (SERVER_HEADER, Modules, ETC.)
- If you receive the source for the first time, type the following command to set it.
- Then modify config.inc.
- cp config.inc.example config.inc
3. Run ./auto.sh
4. Install [systemd file](https://www.nginx.com/resources/wiki/start/topics/examples/systemd/) (If you have already install it, omit it.)
5. Check version and error test : **nginx -v; nginx -t;**
+3 -66
View File
@@ -1,66 +1,3 @@
#!/bin/sh
######################
### Default Config ###
######################
### SERVER HEADER!!!
### Please edit this
SERVER_HEADER="hakase"
### x86, x64 check
### If you do not want optimization, uncomment it.
### (Comment out existing sources.)
### Do not modify it under normal circumstances.
BITCHK=`getconf LONG_BIT`
#BITCHK=32
### Multithread build
### Do not modify it under normal circumstances.
BUILD_MTS="-j$(expr $(nproc) \+ 1)"
#########################
### Select add module ###
#########################
### Enter 0 for the module that is not to be used.
### PageSpeed
PAGESPEED=1
### nginx-rtmp-module
RTMP=1
### naxsi
NAXSI=1
### nginx-dav-ext-module
DAV_EXT=1
### fancyindex
FANCYINDEX=1
##########################
### nginx install path ###
##########################
### Prefix
NGX_PREFIX="/usr/local/nginx"
### Binary
NGX_SBIN_PATH="/usr/sbin/nginx"
### Config Path
NGX_CONF="/etc/nginx/nginx.conf"
### Temp Path (client_body_temp, proxy_temp, ...)
NGX_LIB="/var/lib/nginx"
### Log path
NGX_LOG="/var/log/nginx"
### PID file
NGX_PID="/var/run/nginx.pid"
### Lock file
NGX_LOCK="/var/lock/nginx.lock"
### If you receive the source for the first time, type the following command to set it.
### Then modify config.inc.
cp config.inc.example config.inc
+66
View File
@@ -0,0 +1,66 @@
#!/bin/sh
######################
### Default Config ###
######################
### SERVER HEADER!!!
### Please edit this
SERVER_HEADER="hakase"
### x86, x64 check
### If you do not want optimization, uncomment it.
### (Comment out existing sources.)
### Do not modify it under normal circumstances.
BITCHK=`getconf LONG_BIT`
#BITCHK=32
### Multithread build
### Do not modify it under normal circumstances.
BUILD_MTS="-j$(expr $(nproc) \+ 1)"
#########################
### Select add module ###
#########################
### Enter 0 for the module that is not to be used.
### PageSpeed
PAGESPEED=1
### nginx-rtmp-module
RTMP=1
### naxsi
NAXSI=1
### nginx-dav-ext-module
DAV_EXT=1
### fancyindex
FANCYINDEX=1
##########################
### nginx install path ###
##########################
### Prefix
NGX_PREFIX="/usr/local/nginx"
### Binary
NGX_SBIN_PATH="/usr/sbin/nginx"
### Config Path
NGX_CONF="/etc/nginx/nginx.conf"
### Temp Path (client_body_temp, proxy_temp, ...)
NGX_LIB="/var/lib/nginx"
### Log path
NGX_LOG="/var/log/nginx"
### PID file
NGX_PID="/var/run/nginx.pid"
### Lock file
NGX_LOCK="/var/lock/nginx.lock"