Comments (6)
from 1panel.
可以增加一下这个配置 保存之后访问 网站然后查看 每行日志的最后的 IP 是不是真实 IP 如果是 可以修改 OpenResty 配置文件 log_format 来调整日志中真实 IP 的位置
嗯,主要是想像BT一样。
存在CDN就获取真实IP,然后日志就显示真实的IP。
不存在真实IP,就按照标准格式来显示。
这样弄也行,就是不符合正常阅读习惯。
如果把真实IP改到前面,没开CDN的站点就直接获取不到IP了,很麻烦。
不如1Panel内置给改了。
from 1panel.
能否贴一下 宝塔 的设置页面
from 1panel.
能否贴一下 宝塔 的设置页面
宝塔里面,只需要修改一下Nginx设置,在Nginx中加上这样一段代码就可以实现:
这样就是开启CDN以后会自动显示真实的IP地址。
如果网站没有开启CDN也不会显示空白信息,显示的还是用户的访问IP地址。
from 1panel.
能否贴一下 宝塔 的设置页面
宝塔里面,只需要修改一下Nginx设置,在Nginx中加上这样一段代码就可以实现:
这样就是开启CDN以后会自动显示真实的IP地址。 如果网站没有开启CDN也不会显示空白信息,显示的还是用户的访问IP地址。
在 1Panel 中增加这段配置 IP 会空白是吗
from 1panel.
能否贴一下 宝塔 的设置页面
宝塔里面,只需要修改一下Nginx设置,在Nginx中加上这样一段代码就可以实现:
这样就是开启CDN以后会自动显示真实的IP地址。 如果网站没有开启CDN也不会显示空白信息,显示的还是用户的访问IP地址。在 1Panel 中增加这段配置 IP 会空白是吗
不会是空白,但是有个问题就是。
每次更新或者重载,再或者更新1P的时候会导致配置丢失。
如果能内置一个开启功能会方便很多,不用每次手动加进去。
手动加有点麻烦。
from 1panel.
Related Issues (20)
- [FEATURE] 应用商店添加 TDengine 时序数据库 HOT 1
- [BUG]服务器同步时间问题 HOT 1
- [BUG]1pnanel的WAF检测域名时会区分大小写 HOT 2
- [FEATURE] 适配已经安装环境的主机 HOT 1
- 计划任务的时间不统一,外层的表格的上次执行时间采用服务端时间,执行日志里采用客户端时间,服务端和客户端不在同一时区时会造成时间不一致[BUG] HOT 1
- [FEATURE] 登录界面增加记住用户名功能 HOT 2
- [BUG]开启防篡改后,面板会无限退出 HOT 1
- [BUG]SSL证书申请出错 HOT 1
- [FEATURE]网站文件修改记录 HOT 1
- [FEATURE]首页推荐应用显示建议 HOT 2
- [FEATURE] 希望一些面板的页面之间能够开新标签页跳转 HOT 2
- [FEATURE]防篡改 设置公共规则,批量应用到全部网站,或者勾选需要的网站 HOT 1
- 网站及反向代理功能 HOT 1
- [反馈] 安装失败 HOT 1
- [FEATURE] [应用商店] 请求添加 wallabag HOT 1
- [BUG] 应用商店点击phpMyAdmin或者安装提示无权限 HOT 1
- [FEATURE] 端口规则增加【指定国家】允许或拒绝 HOT 1
- [FEATURE] 计划任务添加Python任务类型
- [FEATURE] SSH公钥管理
- [FEATURE] systemd管理
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 1panel.