位置:首页> 文章> nginx教程
nginx日志默认格式如下:$remote_addr-$remote_user[$time_local]"$request"$status$body_bytes_sent"$http_refer...
nginx开启gzip压缩配置配置参考:server{listen443ssl;server_namet.example.com;#charsetkoi8-r;#access_log/var/l...
最近网站被恶意访问了,了解了一些基础防护手段,nginx屏蔽ua访问 编写文件agent_deany.conf #使用方法 #创建目录 /etc/nginx/conf.d/deny [注意]...
前置说明,项目配置了个全局PATH,估计是为了方便复杂环境单容器多项目部署用的老项目配置方式var PATH = [[${#httpServletRequest.getScheme() + ":...
nginx常规使用时作为http协议的反向代理,这里要讲的是非http的Mysql端口代理,理论支持其他协议nginx.conf配置如下:user nginx; worker_processe...
nginx配置server { listen 80; server_name localhost; #access_log /var/log...
在全站升级https后,突然发现某些接口暂时不能直接重定向
最近博客升级总是nginx原生的502页面,感觉有些不友好,特此研究了下502页面的配置nginx 502配置502页面核心配置 #502 page error_p...
打开任务管理器发现一大堆nginx进程
1.新增nginx屏蔽配置文件文件暂时为/etc/nginx/conf.d/deny_ua.config说明:文件名deny_ua.config,后缀为.config非.conf,原因是.con...
场景描述某些情况下有些资源需要一个基本的认证才能让用户访问
centos 6 nginx+php7环境配置 做一记录,谨防采矿 $title(php.conf) # # The default server # server { listen ...
nginx 跨域头统一配置 location / { add_header Access-Control-Allow-Origin *; add_header Access-...
nginx代理Tomcat带路径的项目location / {                 proxy_pass http://localhost:8080/v1/;            ...
1.root的用法location /request_path/image/ { root /local_path/image/; } 这样配置的结果就是当客户端请求 /reques...