草庐IT

nginx_concat_module

全部标签

完美解决: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

nginx开启https配置之后网页无法访问问题处理

背景说明    最近新购服务器部署nginx之后按照之前的方式部署前端项目并配置https之后访问页面显示:无法访问.新的服务器ECS系统和之前相同,nginx安装方式也相同,nginx配置方式也是相同.但是访问还是显示无法访问.下面简单记录一下问题处理过程.处理过程    1.https访问之后无法访问先确定安全组端口443是否开启.检查了一下是开启的.    2.确定网站证书配置是否正确,正确的配置截图如下:    3.查看nginx是否监听443端口    任意目录下执行命令:netstat-nultp    从截图看,443端口没有监听,先停止nginx,然后执行netstat-nul