首页
关于
壁纸
直播
留言
友链
统计
Search
1
《吞食天地1》金手指代码
7,288 阅读
2
《三国志英杰传》攻略
6,640 阅读
3
白嫖Emby
6,637 阅读
4
Emby客户端IOS破解
6,464 阅读
5
破解emby-server
4,544 阅读
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
登录
Search
标签搜索
ubuntu
mysql
openwrt
zerotier
springboot
centos
openvpn
jdk
吞食天地2
synology
spring
idea
windows11
吞食天地1
transmission
google-play
Japanese
xcode
群晖
kiftd
MoonjerX
累计撰写
381
篇文章
累计收到
466
条评论
首页
栏目
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
页面
关于
壁纸
直播
留言
友链
统计
搜索到
381
篇与
moonjerx
的结果
2021-07-23
青阳龙野个人云盘搭建
javaw -jar E:\applications\kiftd\kiftd-1.0.29-RELEASE.jar -start
2021年07月23日
246 阅读
0 评论
0 点赞
2021-07-18
Nginx伪静态配置尝试
set $my_ip ''; if ( $http_x_forwarded_for = 192.168.1.169){ set $my_ip 1; } #注意这里的$remote_addr如何用了负载均衡的话,这里应该是 if ( $uri = '' ){ set $my_ip 1;} if ( $remote_addr = 192.168.1.169 ){ set $my_ip 1;} location ^~ /a{ alias /home/test/a/; index index.html; } location ^~ /b{ alias /home/test/b/; index index.html; } # location ^~ /c{ alias /home/test/a/; # index index.html; # } location ^~ /{ #匹配成功后跳转,执行永久301跳转 # return 301 https://$server_name:1992$request_uri/v1/; rewrite ^(/)$ https://$host$1b/ permanent; if ( $http_x_forwarded_for !~ 192\.168\.0\..*){ rewrite ^(.*)$ https://moonjer.com permanent; } #rewrite ^(.*)$ https://movie.moonjer.com:1992$1 permanent; # return 301 https://movie.moonjer.com:1992$request_uri; }location 指令说明,该语法用来匹配 url,语法如上: =:用于不含正则表达式的 url 前,要求字符串与 url 严格匹配,匹配成功就停止向下搜索并处理请求。 ~:用于表示 url 包含正则表达式,并且区分大小写。 ~*:用于表示 url 包含正则表达式,并且不区分大小写。 ^~:用于不含正则表达式的 url 前,要求 Nginx 服务器找到表示 url 和字符串匹配度最高的 location 后,立即使用此 location 处理请求,而不再匹配。 如果有 url 包含正则表达式,不需要有 ~ 开头标识。
2021年07月18日
125 阅读
0 评论
0 点赞
2021-07-18
https://www.v2k8s.com/
https://www.v2k8s.com/
2021年07月18日
147 阅读
0 评论
0 点赞
2021-07-18
Nginx日志格式
Nginx中日志文件的格式在nginx.conf中定义,其默认格式如下:log_format main '$remote_addr - $remote_user [$time_local] " $request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"; access_log /usr/local/nginx/var/log/access.log main ;参数具体含义如下:$remote_addr:与$http_x_forwarded_for用以记录客户端的ip地址; $remote_user:记录客户端用户的名称; $time_local:访问时间及时区; $request:请求的URL与HTTP协议; $status:记录请求状态 $body_bytes_sent:记录发送给客户端文件主体内容大小; $http_referer:用来记录从那个页面链接访问过来的; $http_user_agent:记录客户端浏览器的相关信息 access_log /usr/local/nginx/var/log/access.log main ; 这句话是日志文件存放的位置这里是默认的配置,但是有的时候我们需要自己配置我们的nginx日志格式,下面给出一些常用的参数配置。$bytes_sent :客户端发送的字节数 $request_length:客户端请求的长度 $http_host :客户端请求的地址请求地址,即浏览器中你输入的地址(IP或域名) $upstream_status:upstream状态 $upstream_addr :后台upstream的地址,即真正提供服务的主机地址 $request_time : 整个请求的总时间 $upstream_response_time:请求过程中,upstream响应时间 $request_body :POST数据
2021年07月18日
205 阅读
0 评论
0 点赞
2021-07-18
nginx不记录特定日志(access_log_bypass_if)
apache可以使用CustomLog [env=XXX]指定排除哪些日志不记录,nginx自身没有这个功能,但是在官方的第三方模块找到了ngx_log_if_module,它实现了类似env的功能.如果你想了解nginx更多nginx日志格式的资料,请参考咱们ttlsa《nginx日志配置》nginx第三方模块安装参考运维生存时间之前的文章《如何安装nginx第三方模块》指令语法:access_log_bypass_if (condition) [and] 默认值: -Scope: main/srv/loc "access_log_bypass_if" 定义的规则如果为真,那么相应的日志不会写入access log中. access_log_bypass_if你可以把它当做if来看待,access_log_bypass_if可以使用and逻辑运算.如果当前if有and,那么他和下一个if共同作用.access_log_bypass_if配置如下是多个表达式的例子server { access_log_bypass_if ($status = 400); access_log_bypass_if ($host ~* 'moonjer.com'); access_log_bypass_if ($uri = 'status.nginx') and; access_log_bypass_if ($status = 200); } 上面一共有4个表达式,前面两条分别独立,组后两条是and组合的。也就是说状态为400或者host为moonjer.com或者(uri是status.nginx并且响应状态为200)的请求都不会记录到访问日志中。 当然,access_log_bypass_if会在多个地方出现,官方文档叫父配置块和子配置块,默认情况下子配置块会覆盖父配置块,并且不会继承父配置块的配置.如下例子server { access_log_bypass_if ($status = 400); location / { access_log_bypass_if ($host ~* 'moonjer.com'); } }我们可以发现$status = 400根本就没有效果,因为他被location /里面的access_log_bypass_if覆盖了参考地址官方地址:https://github.com/cfsego/ngx_log_if/
2021年07月18日
366 阅读
0 评论
0 点赞
1
...
72
73
74
...
77
您的IP: