
nginx
智能体格
一线大厂14年IT老兵,擅长互联网技术开发与项目管理,企业人工智能整体架构设计与应用落地,大模型训练/微调/推理,智能体开发。
展开
-
NGINX 上传文件413 405
概念413 服务器无法处理请求,因为请求实体过大,超出服务器的处理能力。405 禁用请求中指定的方法。413 解决办法配置文件 nginx.confhttp{} 中添加 client_max_body_size 10m;后端springboot也要配置下#文件上传最大10Mspring.servlet.multipart.max-file-size = 10485760405nginx禁止用post访问静态资源,在service{}中添加proxy_inte原创 2020-08-19 14:14:32 · 875 阅读 · 0 评论 -
linux下快速安装nginx
一、安装nginx 1、在nginx官方网站下载一个包,下载地址是:http://nginx.org/en/download.html 2、WinSCP(ftp上传工具).exe FTP 上传工具上传达到CentOS中 3、我是先建一个目录,把要用的到的安装包放到一起. #mkdir /home/ #tar zxf nginx-1.4.1原创 2016-08-12 16:17:26 · 747 阅读 · 0 评论 -
nginx更改映射ip、端口
1、找到并编辑配置文件vi /usr/local/nginx/conf/nginx.conf2、10.73.9.47:8080修改成本机的ip和端口。location /ycloans/mideaBatchPay { proxy_pass http://10.73.9.47:8080/ycloans_base/mideaBatchPay;原创 2016-09-06 15:08:07 · 10924 阅读 · 1 评论 -
nginx负载均衡完整配置
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1原创 2017-09-30 18:16:22 · 1168 阅读 · 0 评论 -
Nginx的location规则:优先级和路径替换
Nginx是反向代理和负载均衡的首选工具,nginx的location配置有许多细节内容在网上不容易找到资料,或者解释不清。本文对locaiton的常见特性进行介绍。 location的优先级locaiton有四种类型的匹配规则,分别为完全匹配(=)、前缀普通匹配(^~)、正则表达式匹配(~或者~*)、普通匹配规则等号类型(=)的优先级最高。一旦匹配成功,则不再查找其他匹配项前...转载 2019-02-01 20:24:29 · 1579 阅读 · 0 评论