当前位置:网站首页>[bug] there is an error uploading the picture (413 request entity too large)
[bug] there is an error uploading the picture (413 request entity too large)
2022-06-27 19:56:00 【The Nuggets said】
solve
nginx Upload file size is limited , Need to adjust nginx To configure .nginx Modify upload file size limit client_max_body_size 1000M;
nginx Modify upload file size limit , Examples are as follows :
server {
listen 80;
server_name localhost;
client_max_body_size 1000M;
location /web {
alias D:/web;
index main.html;
}
location /web/service {
proxy_pass http://HOST/service;
}
location /web/service/upload {
proxy_pass http://HOST/upload;
}
}
additional
Show reality IP To configure
worker_processes 1;
error_log stderr notice;
events {
worker_connections 1024;
}
http {
include mime.types;
variables_hash_max_size 1024;
access_log off;
#real_ip_header X-Real-IP;
charset utf-8;
gzip on;
gzip_min_length 4k;
gzip_comp_level 5;
gzip_buffers 4 16k;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript application/json;
gzip_vary on;
client_max_body_size 30M;
# development environment
server {
listen 2040;
location / {
#add_header 'Referrer-Policy' 'no-referrer-when-downgrade';
proxy_set_header X-Real-IP $remote_addr; # Store the user's real ip
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # Every time you go through a reverse proxy , Will reverse proxy IP Store in X-Forwarded-For in
proxy_set_header Host $host;
proxy_pass http://localhost:17050;
}
location ~/api/form {
proxy_set_header Host $host;
proxy_pass http://localhost:17022;
}
location ~/api/ {
#proxy_set_header Host $host;
proxy_pass http://localhost:17042;
}
}
}
边栏推荐
- 1027 Colors in Mars
- Is it safe to buy stocks and open an account on the account opening link of the securities manager? Ask the great God for help
- 基于STM32F103ZET6库函数蜂鸣器实验
- Online text batch inversion by line tool
- (LC)46. Full Permutation
- SQL Server - Window Function - 解决连续N条记录过滤问题
- Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
- ABAP-SM30删除前检查
- Code and principle of RANSAC
- Rust 所有权进阶 -- 内存管理
猜你喜欢

Blink SQL内置函数大全

实战回忆录:从Webshell开始突破边界

拥抱云原生:江苏移动订单中心实践

今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献

GIS遥感R语言学习看这里

Bit.Store:熊市漫漫,稳定Staking产品或成主旋律

Erreur Keil de Huada Single Chip Computer La solution de Weak

429-二叉树(108. 将有序数组转换为二叉搜索树、538. 把二叉搜索树转换为累加树、 106.从中序与后序遍历序列构造二叉树、235. 二叉搜索树的最近公共祖先)

散列表(Hash)-复习

从指令交读掌握函数调用堆栈详细过程
随机推荐
1023 Have Fun with Numbers
UE4实现长按功能
shell脚本常用命令(三)
指针和结构体
One to one relationship
Rust 所有权进阶 -- 内存管理
【help】JVM的CPU资源占用过高问题的排查
C# 二维码生成、识别,去除白边、任意颜色
Adding, deleting, modifying and querying MySQL tables (basic)
数智化进入“深水区”,数据治理是关键
Golang map 并发读写问题源码分析
MySQL表的增删改查(基础)
基于STM32F103ZET6库函数外部中断实验
Memoirs of actual combat: breaking the border from webshell
数仓的字符截取三胞胎:substrb、substr、substring
Batch insert data using MySQL bulkloader
华大单片机KEIL报错_WEAK的解决方案
Function key input experiment based on stm32f103zet6 Library
【bug】上传图片出现错误(413 Request Entity Too Large)
Hanoi塔问题