草庐IT

nginx-sticky-module

全部标签

搭建:基于nginx的上传功能

搭建:基于nginx的上传功能文章目录搭建:基于nginx的上传功能一、准备二、安装nginx1.1解压nginx和nginx插件1.2编译并安装nginx三、启动一个python后台服务,用于上传到临时路径文件,转移到正式路径四、添加nginx配置(1)配置一个静态文件服务(2)配置上传文件服务五、启动nginx和python服务六、python程序测试上传一、准备开发一个基于nginx的上传功能。下载nginx:https://nginx.org/en/download.htmlnginx-1.18.0.tar.gz下载nginx-upload-module插件:https://githu

服务攻防-中间件安全&CVE复现&IIS&Apache&Tomcat&Nginx漏洞复现

目录一、导图二、ISS漏洞中间件介绍>1、短文件2、文件解析3、HTTP.SYS4、cve-2017-7269三、Nignx漏洞中间件介绍>1、后缀解析漏洞2、cve-2013-45473、cve-2021-23017无EXP4、cve-2017-7529意义不大四、Apache漏洞中间件介绍>1、漏洞版本简介2、cve-2021-420133、cve-2021-417734、cve-2017-157155、cve-2017-97986、cve-2018-117597、cve-2021-37580四、Tomcat漏洞中间件介绍>1、弱口令猜解2、cve-2017-126153、cve-2020

完美解决:Nginx安装后,/etc/nginx/conf.d下面没有default.conf文件

目录1问题:2解决方法方法一:方法二:3查看1问题:/etc/nginx/conf.d下面没有default.conf文件。2解决方法方法一:自己创建default.conf文件。vi/etc/nginx/conf.d/default.conf添加如下内容:server{listen80;server_namelocalhost;#access_log/var/log/nginx/host.access.logmain;location/{root/usr/share/nginx/html;indexindex.htmlindex.htm;}#error_page404/404.html;#r

【错误解决方案】ModuleNotFoundError: No module named ‘selenium‘

1.错误提示ModuleNotFoundError:Nomodulenamed'selenium',这意味着你试图导入一个名为 selenium 的模块,但Python找不到这个模块2.解决方案安装缺失的模块:如果你确定模块名称正确但仍然收到这个错误,那么可能是你没有安装这个模块。你可以尝试使用pip来安装它:pipinstallselenium-ihttps://mirror.baidu.com/pypi/simple

Nginx异常:[emerg] “proxy_timeout“ directive is not allowed here in /etc/nginx/nginx.conf

Nginx异常日志root:/etc/nginx#/usr/sbin/nginx-sreloadnginx:[emerg]"proxy_timeout"directiveisnotallowedherein/etc/nginx/nginx.conf:41原因一般是修改配置文件时,语法写的有问题,可能该语句放错了位置,导致重启的时候,报该异常解决办法我这边是想添加超时设置,放错了地方,然后重新换了一个地方,就可以了

nginx-目录遍历漏洞

1、描述一般在配置Nginx访问静态资源时,需要指定文件在服务器上的路径,一般是在location下配置alias设置文件目录。如果alias路径后配置了/而location路径后未配置/就会出现目录穿越的漏洞,访问者通过调整url的格式就可以查看到alias配置路径的目录的上层目录及文件情况,造成信息泄露。2、解决方案在配置alias目录路径时,location后面的目录路径也要加上/,如:location/files/3、配置示例未配置:location配置的路径是/cc1server{  listen8081;  server_namelocalhost;     location/cc

Failed to load module script: Expected a JavaScript module script but the server responded with a MI

Failedtoloadmodulescript:ExpectedaJavaScriptmodulescriptbuttheserverrespondedwithaMIMEtypeof"text/html".StrictMIMEtypecheckingisenforcedformodulescriptsperHTMLspec.更改vite.config.js文件中base的值为 '/',或者不设置,因为默认是 '/' 有用的话赏个赞呗

npm 删除 node_modules 文件夹

node_modules文件夹不能手动删除,但是可以用npm提供的一个包来把它删除npm提供一个包remove-node-modules来帮助删除node_modules安装yarnglobaladdremove-node-modules//或npminstall-gremove-node-modules删除当前项目根目录下输入remove-node-modules,即可删除node_modules文件夹。

nginx:[error]OpenEvent(“Global\ngx_reload_19792“)failed(2:The system cannot find the file specified)

Nginx报错:nginx:[error]OpenEvent(“Global\ngx_reload_19792”)failed(2:Thesystemcannotfindthefilespecified)执行nginx-sreload命令后报错:MicrosoftWindows[版本10.0.19045.3086](c)MicrosoftCorporation。保留所有权利。E:\nginx-1.23.4>nginx.exe-sreloadnginx:[error]OpenEvent("Global\ngx_reload_13480")failed(2:Thesystemcannotfindt

nginx重定向问题解决(rewrite or internal redirection cycle)

文章目录错误日志和配置文件问题分析错误日志和配置文件访问日志文件2023/10/1507:13:48[error]30#30:*1rewriteorinternalredirectioncyclewhileinternallyredirectingto"/index.html",client:123.55.159.97,server:server_name,request:"GET/HTTP/1.1",host:"xxx.xxx.xxx.xxx"123.55.159.97--[15/Oct/2023:07:13:48+0000]"GET/HTTP/1.1"500579"-""Mozilla/5