nginx 服务器如何查看当前访问的域名
Song •
998 次浏览 •
0个评论 •
2025年06月10日
当我们网站被攻击时希望查看攻击从哪个域名而来,方便做其他处理;但是默认的日志不展示,所以我们需要自己开启一下。
vim /etc/nginx/nginx.conf 然后在http中添加
log_format custom '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$server_name"';然后设置日志格式为定义的custom:
access_log /var/log/nginx/access.log custom;-
ubuntu+nginx当服务器异常时微信/企业微信/抖音数据重复回调导致服务器崩溃怎么解决? 2025-05-30 -
Jquery使用xlsx实现批量导入Excel数据 2025-05-12 -
laravel11如何启用routes/api.php无状态路由 2025-03-06 -
oppo手机默认浏览器urlscheme 2025-02-13 -
mysql如何给运营人员添加只有查询权限的账号 2024-12-02

ubuntu+nginx当服务器异常时微信/企业微信/抖音数据重复回调导致服务器崩溃怎么解决?