NGINX
1) command
Nginx -s STOP
Nginx re-add -s reload-- holy configuration file
Nginx -V display parameter settings when configuring the source installation
2) modular software
./configure default install some modules
If you want to add a non-default modules, need
./configure --with-xx module name --- enable the built-in modules --add-module-- add third-party module
module name in the end what was the name? Need to check
./configure --help | grep with ---- to query
3) How do you upgrade? Parallel upgrade (open multiple modules); cross-grade
3.1./configure --with-http_ssl_module
3.2 the Make ----> objs
3.3 objs / nginx
3.4 do not run make install
back up the old nginx mv / usr / local / nginx /sbin/nginx.bak
copy objs / nginx new to / usr / local / nginx / sbin /
- et plus the first two steps: Make upgrade ---- kill the old, re-open, do not use
- Install the new module
Install nginx install third-party module actually use --add-module reinstall nginx,
Do not make install but directly to objs compiled directory / nginx nginx files directly cover the old files. If you need to install multiple third-party modules nginx, you only need to specify several corresponding --add-module can be.
6, page 404 custom
error_page 401 402 403 404 /404.html the Location = {/40x.html the root HTML } 300-- 401 redirects 400 Client Error Error code 403 Forbidden deny / right permissions 414 the request header 500 Chang - server error cluster wrong 502--