Centos7使用systemd管理nginx进程

vi /lib/systemd/system/nginx.service[Unit]Description=nginxAfter=network.target[Service]Type=forkingExecStart=/opt/nginx/sbin/nginxExecReload=/opt/ngi
Nginx Centos 2023年07月06日 89次浏览

nginx禁止使用ip访问

IP+端口访问:直接返回404,只允许使用域名访问,防止被端口扫描后恶意访问#user nobody;worker_processes 3;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs
Nginx 2023年05月29日 177次浏览

nginx编译相关配置

# https# tcp转发./configure --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream
Nginx 负载均衡 2023年02月23日 740次浏览

改版ngx_lua_waf防护Nginx(WAF防火墙)

安装过程yum install wget gcc gcc-c++ pcre pcre-devel openssl openssl-devel zlib zlib-develcd /optwget https://github.com/simplresty/ngx_devel_kit/archive/
Nginx 2020年02月16日 1,023次浏览