{"id":2922,"date":"2024-08-13T16:30:03","date_gmt":"2024-08-13T14:30:03","guid":{"rendered":"http:\/\/ff.mhrooz.xyz\/?p=2922"},"modified":"2024-08-13T16:30:07","modified_gmt":"2024-08-13T14:30:07","slug":"nginx_she_zhi_zui_da_shang_chuan_wen_jian_xian_zhi","status":"publish","type":"post","link":"https:\/\/blog.mhrooz.xyz\/index.php\/2024\/08\/13\/nginx_she_zhi_zui_da_shang_chuan_wen_jian_xian_zhi\/","title":{"rendered":"Nginx\u8bbe\u7f6e\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u9650\u5236"},"content":{"rendered":"\n<!doctype html>\n<html style='font-size:20px !important'>\n<head>\n<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>\n\n<link href='https:\/\/fonts.googleapis.com\/css?family=PT+Serif:400,400italic,700,700italic&#038;subset=latin,cyrillic-ext,cyrillic,latin-ext' rel='stylesheet' type='text\/css' \/><style type='text\/css'>html {overflow-x: initial !important;}:root { --bg-color: #ffffff; --text-color: #333333; --select-text-bg-color: #B5D6FC; --select-text-font-color: auto; --monospace: \"Lucida Console\",Consolas,\"Courier\",monospace; --title-bar-height: 20px; }\n.mac-os-11 { --title-bar-height: 28px; }\nhtml { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }\nh1, h2, h3, h4, h5 { white-space: pre-wrap; }\nbody { margin: 0px; padding: 0px; height: auto; inset: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; }\niframe { margin: auto; }\na.url { word-break: break-all; }\na:active, a:hover { outline: 0px; }\n.in-text-selection, ::selection { text-shadow: none; background: var(--select-text-bg-color); color: var(--select-text-font-color); }\n#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; overflow-wrap: break-word; position: relative; white-space: normal; overflow-x: visible; padding-top: 36px; }\n#write.first-line-indent p { text-indent: 2em; }\n#write.first-line-indent li p, #write.first-line-indent p * { text-indent: 0px; }\n#write.first-line-indent li { margin-left: 2em; }\n.for-image #write { padding-left: 8px; padding-right: 8px; }\nbody.typora-export { padding-left: 30px; padding-right: 30px; }\n.typora-export .footnote-line, .typora-export li, .typora-export p { white-space: pre-wrap; }\n.typora-export .task-list-item input { pointer-events: none; }\n@media screen and (max-width: 500px) {\n  body.typora-export { padding-left: 0px; padding-right: 0px; }\n  #write { padding-left: 20px; padding-right: 20px; }\n}\n#write li > figure:last-child { margin-bottom: 0.5rem; }\n#write ol, #write ul { position: relative; }\nimg { max-width: 100%; vertical-align: middle; image-orientation: from-image; }\nbutton, input, select, textarea { color: inherit; font: inherit; }\ninput[type=\"checkbox\"], input[type=\"radio\"] { line-height: normal; padding: 0px; }\n*, ::after, ::before { box-sizing: border-box; }\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre { width: inherit; }\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p { position: relative; }\np { line-height: inherit; }\nh1, h2, h3, h4, h5, h6 { break-after: avoid-page; break-inside: avoid; orphans: 4; }\np { orphans: 4; }\nh1 { font-size: 2rem; }\nh2 { font-size: 1.8rem; }\nh3 { font-size: 1.6rem; }\nh4 { font-size: 1.4rem; }\nh5 { font-size: 1.2rem; }\nh6 { font-size: 1rem; }\n.md-math-block, .md-rawblock, h1, h2, h3, h4, h5, h6, p { margin-top: 1rem; margin-bottom: 1rem; }\n.hidden { display: none; }\n.md-blockmeta { color: rgb(204, 204, 204); font-weight: 700; font-style: italic; }\na { cursor: pointer; }\nsup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; cursor: pointer; }\nsup.md-footnote a, sup.md-footnote a:hover { color: inherit; text-transform: inherit; text-decoration: inherit; }\n#write input[type=\"checkbox\"] { cursor: pointer; width: inherit; height: inherit; }\nfigure { overflow-x: auto; margin: 1.2em 0px; max-width: calc(100% + 16px); padding: 0px; }\nfigure > table { margin: 0px; }\nthead, tr { break-inside: avoid; break-after: auto; }\nthead { display: table-header-group; }\ntable { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }\ntable.md-table td { min-width: 32px; }\n.CodeMirror-gutters { border-right: 0px; background-color: inherit; }\n.CodeMirror-linenumber { user-select: none; }\n.CodeMirror { text-align: left; }\n.CodeMirror-placeholder { opacity: 0.3; }\n.CodeMirror pre { padding: 0px 4px; }\n.CodeMirror-lines { padding: 0px; }\ndiv.hr:focus { cursor: none; }\n#write pre { white-space: pre-wrap; }\n#write.fences-no-line-wrapping pre { white-space: pre; }\n#write pre.ty-contain-cm { white-space: normal; }\n.CodeMirror-gutters { margin-right: 4px; }\n.md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background: inherit; position: relative !important; }\n.md-fences-adv-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }\n#write .md-fences.mock-cm { white-space: pre-wrap; }\n.md-fences.md-fences-with-lineno { padding-left: 0px; }\n#write.fences-no-line-wrapping .md-fences.mock-cm { white-space: pre; overflow-x: auto; }\n.md-fences.mock-cm.md-fences-with-lineno { padding-left: 8px; }\n.CodeMirror-line, twitterwidget { break-inside: avoid; }\nsvg { break-inside: avoid; }\n.footnotes { opacity: 0.8; font-size: 0.9rem; margin-top: 1em; margin-bottom: 1em; }\n.footnotes + .footnotes { margin-top: 0px; }\n.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; background: 0px 0px; text-decoration: none; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; -webkit-tap-highlight-color: transparent; line-height: normal; font-weight: 400; text-align: left; box-sizing: content-box; direction: ltr; }\nli div { padding-top: 0px; }\nblockquote { margin: 1rem 0px; }\nli .mathjax-block, li p { margin: 0.5rem 0px; }\nli blockquote { margin: 1rem 0px; }\nli { margin: 0px; position: relative; }\nblockquote > :last-child { margin-bottom: 0px; }\nblockquote > :first-child, li > :first-child { margin-top: 0px; }\n.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; white-space: normal; }\n#write .footnote-line { white-space: pre-wrap; }\n@media print {\n  body, html { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; font-variant-ligatures: no-common-ligatures; }\n  #write { margin-top: 0px; border-color: transparent !important; padding-top: 0px !important; padding-bottom: 0px !important; }\n  .typora-export * { -webkit-print-color-adjust: exact; }\n  .typora-export #write { break-after: avoid; }\n  .typora-export #write::after { height: 0px; }\n  .is-mac table { break-inside: avoid; }\n  #write > p:nth-child(1) { margin-top: 0px; }\n  .typora-export-show-outline .typora-export-sidebar { display: none; }\n  figure { overflow-x: visible; }\n}\n.footnote-line { margin-top: 0.714em; font-size: 0.7em; }\na img, img a { cursor: pointer; }\npre.md-meta-block { font-size: 0.8rem; min-height: 0.8rem; white-space: pre-wrap; background: rgb(204, 204, 204); display: block; overflow-x: hidden; }\np > .md-image:only-child:not(.md-img-error) img, p > img:only-child { display: block; margin: auto; }\n#write.first-line-indent p > .md-image:only-child:not(.md-img-error) img { left: -2em; position: relative; }\np > .md-image:only-child { display: inline-block; width: 100%; }\n#write .MathJax_Display { margin: 0.8em 0px 0px; }\n.md-math-block { width: 100%; }\n.md-math-block:not(:empty)::after { display: none; }\n.MathJax_ref { fill: currentcolor; }\n[contenteditable=\"true\"]:active, [contenteditable=\"true\"]:focus, [contenteditable=\"false\"]:active, [contenteditable=\"false\"]:focus { outline: 0px; box-shadow: none; }\n.md-task-list-item { position: relative; list-style-type: none; }\n.task-list-item.md-task-list-item { padding-left: 0px; }\n.md-task-list-item > input { position: absolute; top: 0px; left: 0px; margin-left: -1.2em; margin-top: calc(1em - 10px); border: none; }\n.math { font-size: 1rem; }\n.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }\n.md-toc-content { position: relative; margin-left: 0px; }\n.md-toc-content::after, .md-toc::after { display: none; }\n.md-toc-item { display: block; color: rgb(65, 131, 196); }\n.md-toc-item a { text-decoration: none; }\n.md-toc-inner:hover { text-decoration: underline; }\n.md-toc-inner { display: inline-block; cursor: pointer; }\n.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: 700; }\n.md-toc-h2 .md-toc-inner { margin-left: 2em; }\n.md-toc-h3 .md-toc-inner { margin-left: 4em; }\n.md-toc-h4 .md-toc-inner { margin-left: 6em; }\n.md-toc-h5 .md-toc-inner { margin-left: 8em; }\n.md-toc-h6 .md-toc-inner { margin-left: 10em; }\n@media screen and (max-width: 48em) {\n  .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }\n  .md-toc-h4 .md-toc-inner { margin-left: 5em; }\n  .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }\n  .md-toc-h6 .md-toc-inner { margin-left: 8em; }\n}\na.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }\n.footnote-line a:not(.reversefootnote) { color: inherit; }\n.reversefootnote { font-family: ui-monospace, sans-serif; }\n.md-attr { display: none; }\n.md-fn-count::after { content: \".\"; }\ncode, pre, samp, tt { font-family: var(--monospace); }\nkbd { margin: 0px 0.1em; padding: 0.1em 0.6em; font-size: 0.8em; color: rgb(36, 39, 41); background: rgb(255, 255, 255); border: 1px solid rgb(173, 179, 185); border-radius: 3px; box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset; white-space: nowrap; vertical-align: middle; }\n.md-comment { color: rgb(162, 127, 3); opacity: 0.6; font-family: var(--monospace); }\ncode { text-align: left; vertical-align: initial; }\na.md-print-anchor { white-space: pre !important; border-width: initial !important; border-style: none !important; border-color: initial !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: 0px !important; background: 0px 0px !important; text-decoration: initial !important; text-shadow: initial !important; }\n.os-windows.monocolor-emoji .md-emoji { font-family: \"Segoe UI Symbol\", sans-serif; }\n.md-diagram-panel > svg { max-width: 100%; }\n[lang=\"flow\"] svg, [lang=\"mermaid\"] svg { max-width: 100%; height: auto; }\n[lang=\"mermaid\"] .node text { font-size: 1rem; }\ntable tr th { border-bottom: 0px; }\nvideo { max-width: 100%; display: block; margin: 0px auto; }\niframe { max-width: 100%; width: 100%; border: none; }\n.highlight td, .highlight tr { border: 0px; }\nmark { background: rgb(255, 255, 0); color: rgb(0, 0, 0); }\n.md-html-inline .md-plain, .md-html-inline strong, mark .md-inline-math, mark strong { color: inherit; }\n.md-expand mark .md-meta { opacity: 0.3 !important; }\nmark .md-meta { color: rgb(0, 0, 0); }\n@media print {\n  .typora-export h1, .typora-export h2, .typora-export h3, .typora-export h4, .typora-export h5, .typora-export h6 { break-inside: avoid; }\n}\n.md-diagram-panel .messageText { stroke: none !important; }\n.md-diagram-panel .start-state { fill: var(--node-fill); }\n.md-diagram-panel .edgeLabel rect { opacity: 1 !important; }\n.md-fences.md-fences-math { font-size: 1em; }\n.md-fences-advanced:not(.md-focus) { padding: 0px; white-space: nowrap; border: 0px; }\n.md-fences-advanced:not(.md-focus) { background: inherit; }\n.typora-export-show-outline .typora-export-content { max-width: 1440px; margin: auto; display: flex; flex-direction: row; }\n.typora-export-sidebar { width: 300px; font-size: 0.8rem; margin-top: 80px; margin-right: 18px; }\n.typora-export-show-outline #write { --webkit-flex: 2; flex: 2 1 0%; }\n.typora-export-sidebar .outline-content { position: fixed; top: 0px; max-height: 100%; overflow: hidden auto; padding-bottom: 30px; padding-top: 60px; width: 300px; }\n@media screen and (max-width: 1024px) {\n  .typora-export-sidebar, .typora-export-sidebar .outline-content { width: 240px; }\n}\n@media screen and (max-width: 800px) {\n  .typora-export-sidebar { display: none; }\n}\n.outline-content li, .outline-content ul { margin-left: 0px; margin-right: 0px; padding-left: 0px; padding-right: 0px; list-style: none; overflow-wrap: anywhere; }\n.outline-content ul { margin-top: 0px; margin-bottom: 0px; }\n.outline-content strong { font-weight: 400; }\n.outline-expander { width: 1rem; height: 1.42857rem; position: relative; display: table-cell; vertical-align: middle; cursor: pointer; padding-left: 4px; }\n.outline-expander::before { content: \"\uf125\"; position: relative; font-family: Ionicons; display: inline-block; font-size: 8px; vertical-align: middle; }\n.outline-item { padding-top: 3px; padding-bottom: 3px; cursor: pointer; }\n.outline-expander:hover::before { content: \"\uf123\"; }\n.outline-h1 > .outline-item { padding-left: 0px; }\n.outline-h2 > .outline-item { padding-left: 1em; }\n.outline-h3 > .outline-item { padding-left: 2em; }\n.outline-h4 > .outline-item { padding-left: 3em; }\n.outline-h5 > .outline-item { padding-left: 4em; }\n.outline-h6 > .outline-item { padding-left: 5em; }\n.outline-label { cursor: pointer; display: table-cell; vertical-align: middle; text-decoration: none; color: inherit; }\n.outline-label:hover { text-decoration: underline; }\n.outline-item:hover { border-color: rgb(245, 245, 245); background-color: var(--item-hover-bg-color); }\n.outline-item:hover { margin-left: -28px; margin-right: -28px; border-left: 28px solid transparent; border-right: 28px solid transparent; }\n.outline-item-single .outline-expander::before, .outline-item-single .outline-expander:hover::before { display: none; }\n.outline-item-open > .outline-item > .outline-expander::before { content: \"\uf123\"; }\n.outline-children { display: none; }\n.info-panel-tab-wrapper { display: none; }\n.outline-item-open > .outline-children { display: block; }\n.typora-export .outline-item { padding-top: 1px; padding-bottom: 1px; }\n.typora-export .outline-item:hover { margin-right: -8px; border-right: 8px solid transparent; }\n.typora-export .outline-expander::before { content: \"+\"; font-family: inherit; top: -1px; }\n.typora-export .outline-expander:hover::before, .typora-export .outline-item-open > .outline-item > .outline-expander::before { content: \"\u2212\"; }\n.typora-export-collapse-outline .outline-children { display: none; }\n.typora-export-collapse-outline .outline-item-open > .outline-children, .typora-export-no-collapse-outline .outline-children { display: block; }\n.typora-export-no-collapse-outline .outline-expander::before { content: \"\" !important; }\n.typora-export-show-outline .outline-item-active > .outline-item .outline-label { font-weight: 700; }\n.md-inline-math-container mjx-container { zoom: 0.95; }\nmjx-container { break-inside: avoid; }\n.md-alert.md-alert-note { border-left-color: rgb(9, 105, 218); }\n.md-alert.md-alert-important { border-left-color: rgb(130, 80, 223); }\n.md-alert.md-alert-warning { border-left-color: rgb(154, 103, 0); }\n.md-alert.md-alert-tip { border-left-color: rgb(31, 136, 61); }\n.md-alert.md-alert-caution { border-left-color: rgb(207, 34, 46); }\n.md-alert { padding: 0px 1em; margin-bottom: 16px; color: inherit; border-left: 0.25em solid rgb(0, 0, 0); }\n.md-alert-text-note { color: rgb(9, 105, 218); }\n.md-alert-text-important { color: rgb(130, 80, 223); }\n.md-alert-text-warning { color: rgb(154, 103, 0); }\n.md-alert-text-tip { color: rgb(31, 136, 61); }\n.md-alert-text-caution { color: rgb(207, 34, 46); }\n.md-alert-text { font-size: 0.9rem; font-weight: 700; }\n.md-alert-text svg { fill: currentcolor; position: relative; top: 0.125em; margin-right: 1ch; overflow: visible; }\n.md-alert-text-container::after { content: attr(data-text); text-transform: capitalize; pointer-events: none; margin-right: 1ch; }\n\n\n.CodeMirror { height: auto; }\n.CodeMirror.cm-s-inner { background: inherit; }\n.CodeMirror-scroll { overflow: auto hidden; z-index: 3; }\n.CodeMirror-gutter-filler, .CodeMirror-scrollbar-filler { background-color: rgb(255, 255, 255); }\n.CodeMirror-gutters { border-right: 1px solid rgb(221, 221, 221); background: inherit; white-space: nowrap; }\n.CodeMirror-linenumber { padding: 0px 3px 0px 5px; text-align: right; color: rgb(153, 153, 153); }\n.cm-s-inner .cm-keyword { color: rgb(119, 0, 136); }\n.cm-s-inner .cm-atom, .cm-s-inner.cm-atom { color: rgb(34, 17, 153); }\n.cm-s-inner .cm-number { color: rgb(17, 102, 68); }\n.cm-s-inner .cm-def { color: rgb(0, 0, 255); }\n.cm-s-inner .cm-variable { color: rgb(0, 0, 0); }\n.cm-s-inner .cm-variable-2 { color: rgb(0, 85, 170); }\n.cm-s-inner .cm-variable-3 { color: rgb(0, 136, 85); }\n.cm-s-inner .cm-string { color: rgb(170, 17, 17); }\n.cm-s-inner .cm-property { color: rgb(0, 0, 0); }\n.cm-s-inner .cm-operator { color: rgb(152, 26, 26); }\n.cm-s-inner .cm-comment, .cm-s-inner.cm-comment { color: rgb(170, 85, 0); }\n.cm-s-inner .cm-string-2 { color: rgb(255, 85, 0); }\n.cm-s-inner .cm-meta { color: rgb(85, 85, 85); }\n.cm-s-inner .cm-qualifier { color: rgb(85, 85, 85); }\n.cm-s-inner .cm-builtin { color: rgb(51, 0, 170); }\n.cm-s-inner .cm-bracket { color: rgb(153, 153, 119); }\n.cm-s-inner .cm-tag { color: rgb(17, 119, 0); }\n.cm-s-inner .cm-attribute { color: rgb(0, 0, 204); }\n.cm-s-inner .cm-header, .cm-s-inner.cm-header { color: rgb(0, 0, 255); }\n.cm-s-inner .cm-quote, .cm-s-inner.cm-quote { color: rgb(0, 153, 0); }\n.cm-s-inner .cm-hr, .cm-s-inner.cm-hr { color: rgb(153, 153, 153); }\n.cm-s-inner .cm-link, .cm-s-inner.cm-link { color: rgb(0, 0, 204); }\n.cm-negative { color: rgb(221, 68, 68); }\n.cm-positive { color: rgb(34, 153, 34); }\n.cm-header, .cm-strong { font-weight: 700; }\n.cm-del { text-decoration: line-through; }\n.cm-em { font-style: italic; }\n.cm-link { text-decoration: underline; }\n.cm-error { color: red; }\n.cm-invalidchar { color: red; }\n.cm-constant { color: rgb(38, 139, 210); }\n.cm-defined { color: rgb(181, 137, 0); }\ndiv.CodeMirror span.CodeMirror-matchingbracket { color: rgb(0, 255, 0); }\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket { color: rgb(255, 34, 34); }\n.cm-s-inner .CodeMirror-activeline-background { background: inherit; }\n.CodeMirror { position: relative; overflow: hidden; }\n.CodeMirror-scroll { height: 100%; outline: 0px; position: relative; box-sizing: content-box; background: inherit; }\n.CodeMirror-sizer { position: relative; }\n.CodeMirror-gutter-filler, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-vscrollbar { position: absolute; z-index: 6; display: none; outline: 0px; }\n.CodeMirror-vscrollbar { right: 0px; top: 0px; overflow: hidden; }\n.CodeMirror-hscrollbar { bottom: 0px; left: 0px; overflow: auto hidden; }\n.CodeMirror-scrollbar-filler { right: 0px; bottom: 0px; }\n.CodeMirror-gutter-filler { left: 0px; bottom: 0px; }\n.CodeMirror-gutters { position: absolute; left: 0px; top: 0px; padding-bottom: 10px; z-index: 3; overflow-y: hidden; }\n.CodeMirror-gutter { white-space: normal; height: 100%; box-sizing: content-box; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; }\n.CodeMirror-gutter-wrapper { position: absolute; z-index: 4; background: 0px 0px !important; border: none !important; }\n.CodeMirror-gutter-background { position: absolute; top: 0px; bottom: 0px; z-index: 4; }\n.CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }\n.CodeMirror-lines { cursor: text; }\n.CodeMirror pre { border-radius: 0px; border-width: 0px; background: 0px 0px; font-family: inherit; font-size: inherit; margin: 0px; white-space: pre; overflow-wrap: normal; color: inherit; z-index: 2; position: relative; overflow: visible; }\n.CodeMirror-wrap pre { overflow-wrap: break-word; white-space: pre-wrap; word-break: normal; }\n.CodeMirror-code pre { border-right: 30px solid transparent; width: fit-content; }\n.CodeMirror-wrap .CodeMirror-code pre { border-right: none; width: auto; }\n.CodeMirror-linebackground { position: absolute; inset: 0px; z-index: 0; }\n.CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; }\n.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }\n.CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; }\n.CodeMirror-measure pre { position: static; }\n.CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right: none; width: 0px; }\n.CodeMirror div.CodeMirror-cursor { visibility: hidden; }\n.CodeMirror-focused div.CodeMirror-cursor { visibility: inherit; }\n.cm-searching { background: rgba(255, 255, 0, 0.4); }\nspan.cm-underlined { text-decoration: underline; }\nspan.cm-strikethrough { text-decoration: line-through; }\n.cm-tw-syntaxerror { color: rgb(255, 255, 255); background-color: rgb(153, 0, 0); }\n.cm-tw-deleted { text-decoration: line-through; }\n.cm-tw-header5 { font-weight: 700; }\n.cm-tw-listitem:first-child { padding-left: 10px; }\n.cm-tw-box { border-style: solid; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-color: inherit; border-top-width: 0px !important; }\n.cm-tw-underline { text-decoration: underline; }\n@media print {\n  .CodeMirror div.CodeMirror-cursor { visibility: hidden; }\n}\n\n\n\/* meyer reset -- http:\/\/meyerweb.com\/eric\/tools\/css\/reset\/ , v2.0 | 20110126 | License: none (public domain) *\/\n\n@include-when-export url(https:\/\/fonts.googleapis.com\/css?family=PT+Serif:400,400italic,700,700italic&subset=latin,cyrillic-ext,cyrillic,latin-ext);\n\n\/* =========== *\/\n\n\/* pt-serif-regular - latin *\/\n\/* pt-serif-italic - latin *\/\n\/* pt-serif-700 - latin *\/\n\/* pt-serif-700italic - latin *\/\n:root {\n\t--active-file-bg-color: #dadada;\n\t--active-file-bg-color: rgba(32, 43, 51, 0.63);\n\t--active-file-text-color: white;\n\t--bg-color: #f3f2ee;\n\t--text-color: #1f0909;\n\t--control-text-color: #444;\n\t--rawblock-edit-panel-bd: #e5e5e5;\n\n\t--select-text-bg-color: rgba(32, 43, 51, 0.63);\n  --select-text-font-color: white;\n}\n\npre {\n\t--select-text-bg-color: #36284e;\n\t--select-text-font-color: #fff;\n}\n\nhtml {\n\tfont-size: 16px;\n\t-webkit-font-smoothing: antialiased;\n}\n\nhtml, body {\n\tbackground-color: #f3f2ee;\n\tfont-family: \"PT Serif\", 'Times New Roman', Times, serif;\n\tcolor: #1f0909;\n\tline-height: 1.5em;\n}\n\n\/*#write {\n\toverflow-x: auto;\n    max-width: initial;\n\tpadding-left: calc(50% - 17em);\n    padding-right: calc(50% - 17em);\n}\n\n@media (max-width: 36em) {\n \t#write {\n \t\tpadding-left: 1em;\n    \tpadding-right: 1em;\n \t}\n}*\/\n\n#write {\n\tmax-width: 40em;\n}\n\n@media only screen and (min-width: 1400px) {\n\t#write {\n\t\t\tmax-width: 914px;\n\t}\n}\n\nol li {\n\tlist-style-type: decimal;\n\tlist-style-position: outside;\n}\nul li {\n\tlist-style-type: disc;\n\tlist-style-position: outside;\n}\n\nol,\nul {\n\tlist-style: none;\n}\n\nblockquote,\nq {\n\tquotes: none;\n}\nblockquote:before,\nblockquote:after,\nq:before,\nq:after {\n\tcontent: '';\n\tcontent: none;\n}\ntable {\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\/* styles *\/\n\n\/* ====== *\/\n\n\/* headings *\/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n\tfont-weight: bold;\n}\nh1 {\n\tfont-size: 1.875em;\n\t\/*30 \/ 16*\/\n\tline-height: 1.6em;\n\t\/* 48 \/ 30*\/\n\tmargin-top: 2em;\n}\nh2,\nh3 {\n\tfont-size: 1.3125em;\n\t\/*21 \/ 16*\/\n\tline-height: 1.15;\n\t\/*24 \/ 21*\/\n\tmargin-top: 2.285714em;\n\t\/*48 \/ 21*\/\n\tmargin-bottom: 1.15em;\n\t\/*24 \/ 21*\/\n}\nh3 {\n\tfont-weight: normal;\n}\nh4 {\n\tfont-size: 1.125em;\n\t\/*18 \/ 16*\/\n\tmargin-top: 2.67em;\n\t\/*48 \/ 18*\/\n}\nh5,\nh6 {\n\tfont-size: 1em;\n\t\/*16*\/\n}\nh1 {\n\tborder-bottom: 1px solid;\n\tmargin-bottom: 1.875em;\n\tpadding-bottom: 0.8125em;\n}\n\/* links *\/\n\na {\n\ttext-decoration: none;\n\tcolor: #065588;\n}\na:hover,\na:active {\n\ttext-decoration: underline;\n}\n\/* block spacing *\/\n\np,\nblockquote,\n.md-fences {\n\tmargin-bottom: 1.5em;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n\tmargin-bottom: 1.5em;\n}\n\/* blockquote *\/\n\nblockquote {\n\tfont-style: italic;\n\tborder-left: 5px solid;\n\tmargin-left: 2em;\n\tpadding-left: 1em;\n}\n\/* lists *\/\n\nul,\nol {\n\tmargin: 0 0 1.5em 1.5em;\n}\n\/* tables *\/\n.md-meta,.md-before, .md-after {\n\tcolor:#999;\n}\n\ntable {\n\tmargin-bottom: 1.5em;\n\t\/*24 \/ 16*\/\n\tfont-size: 1em;\n\t\/* width: 100%; *\/\n}\nthead th,\ntfoot th {\n\tpadding: .25em .25em .25em .4em;\n\ttext-transform: uppercase;\n}\nth {\n\ttext-align: left;\n}\ntd {\n\tvertical-align: top;\n\tpadding: .25em .25em .25em .4em;\n}\n\ncode,\n.md-fences {\n\tbackground-color: #dadada;\n}\n\ncode {\n\tpadding-left: 2px;\n\tpadding-right: 2px;\n}\n\n.md-fences {\n\tmargin-left: 2em;\n\tmargin-bottom: 3em;\n\tpadding-left: 1ch;\n\tpadding-right: 1ch;\n}\n\npre,\ncode,\ntt {\n\tfont-size: .875em;\n\tline-height: 1.714285em;\n}\n\/* some fixes *\/\n\nh1 {\n\tline-height: 1.3em;\n\tfont-weight: normal;\n\tmargin-bottom: 0.5em;\n}\n\np + ul,\np + ol{\n\tmargin-top: .5em;\n}\n\nh3 + ul,\nh4 + ul,\nh5 + ul,\nh6 + ul,\nh3 + ol,\nh4 + ol,\nh5 + ol,\nh6 + ol {\n\tmargin-top: .5em;\n}\n\nli > ul,\nli > ol {\n\tmargin-top: inherit;\n\tmargin-bottom: 0;\n}\n\nli ol>li {\n\tlist-style-type: lower-alpha;\n}\n\nli li ol>li{\n\tlist-style-type: lower-roman;\n}\n\nh2,\nh3 {\n\tmargin-bottom: .75em;\n}\nhr {\n\tborder-top: none;\n\tborder-right: none;\n\tborder-bottom: 1px solid;\n\tborder-left: none;\n}\nh1 {\n\tborder-color: #c5c5c5;\n}\nblockquote {\n\tborder-color: #bababa;\n\tcolor: #656565;\n}\n\nblockquote ul,\nblockquote ol {\n\tmargin-left:0;\n}\n\n.ty-table-edit {\n\tbackground-color: transparent;\n}\nthead {\n\tbackground-color: #dadada;\n}\ntr:nth-child(even) {\n\tbackground: #e8e7e7;\n}\nhr {\n\tborder-color: #c5c5c5;\n}\n.task-list{\n\tpadding-left: 1rem;\n}\n\n.md-task-list-item {\n\tpadding-left: 1.5rem;\n\tlist-style-type: none;\n}\n\n.md-task-list-item > input:before {\n\tcontent: '\\221A';\n\tdisplay: inline-block;\n\twidth: 1.25rem;\n  \theight: 1.6rem;\n\tvertical-align: middle;\n\ttext-align: center;\n\tcolor: #ddd;\n\tbackground-color: #F3F2EE;\n}\n\n.md-task-list-item > input:checked:before,\n.md-task-list-item > input[checked]:before{\n\tcolor: inherit;\n}\n\n#write pre.md-meta-block {\n\tmin-height: 1.875rem;\n\tcolor: #555;\n\tborder: 0px;\n\tbackground: transparent;\n\tmargin-top: -4px;\n\tmargin-left: 1em;\n\tmargin-top: 1em;\n}\n\n.md-image>.md-meta {\n\tcolor: #9B5146;\n}\n\n.md-image>.md-meta{\n\tfont-family: Menlo, 'Ubuntu Mono', Consolas, 'Courier New', 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', serif;\n}\n\n\n#write>h3.md-focus:before{\n\tleft: -1.5rem;\n\tcolor:#999;\n\tborder-color:#999;\n}\n#write>h4.md-focus:before{\n\tleft: -1.5rem;\n\ttop: .25rem;\n\tcolor:#999;\n\tborder-color:#999;\n}\n#write>h5.md-focus:before{\n\tleft: -1.5rem;\n\ttop: .0.3125rem;\n\tcolor:#999;\n\tborder-color:#999;\n}\n#write>h6.md-focus:before{\n\tleft: -1.5rem;\n\ttop: 0.3125rem;\n\tcolor:#999;\n\tborder-color:#999;\n}\n\n.md-toc:focus .md-toc-content{\n\tmargin-top: 19px;\n}\n\n.md-toc-content:empty:before{\n\tcolor: #065588;\n}\n.md-toc-item {\n\tcolor: #065588;\n}\n#write div.md-toc-tooltip {\n\tbackground-color: #f3f2ee;\n}\n\n#typora-sidebar {\n\tbackground-color: #f3f2ee;\n\t-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);\n  \tbox-shadow: 0 6px 12px rgba(0, 0, 0, 0.375);\n}\n\n.pin-outline #typora-sidebar {\n\tbackground: inherit;\n\tbox-shadow: none;\n\tborder-right: 1px dashed;\n}\n\n.pin-outline #typora-sidebar:hover .outline-title-wrapper {\n\tborder-left:1px dashed;\n}\n\n.outline-item:hover {\n  background-color: #dadada;\n  border-left: 28px solid #dadada;\n  border-right: 18px solid #dadada;\n}\n\n.typora-node .outline-item:hover {\n  \tborder-right: 28px solid #dadada;\n}\n\n.outline-expander:before {\n  content: \"\\f0da\";\n  font-family: FontAwesome;\n  font-size:14px;\n  top: 1px;\n}\n\n.outline-expander:hover:before,\n.outline-item-open>.outline-item>.outline-expander:before {\n  content: \"\\f0d7\";\n}\n\n.modal-content {\n\tbackground-color: #f3f2ee;\n}\n\n.auto-suggest-container ul li {\n\tlist-style-type: none;\n}\n\n\/** UI for electron *\/\n\n.megamenu-menu,\n#top-titlebar, #top-titlebar *,\n.megamenu-content {\n\tbackground: #f3f2ee;\n\tcolor: #1f0909;\n}\n\n.megamenu-menu-header {\n\tborder-bottom: 1px dashed #202B33;\n}\n\n.megamenu-menu {\n\tbox-shadow: none;\n\tborder-right: 1px dashed;\n}\n\nheader, .context-menu, .megamenu-content, footer {\n\tfont-family: \"PT Serif\", 'Times New Roman', Times, serif;\n    color: #1f0909;\n}\n\n#megamenu-back-btn {\n\tcolor: #1f0909;\n\tborder-color: #1f0909;\n}\n\n.megamenu-menu-header #megamenu-menu-header-title:before {\n\tcolor: #1f0909;\n}\n\n.megamenu-menu-list li a:hover, .megamenu-menu-list li a.active {\n\tcolor: inherit;\n\tbackground-color: #e8e7df;\n}\n\n.long-btn:hover {\n\tbackground-color: #e8e7df;\n}\n\n#recent-file-panel tbody tr:nth-child(2n-1) {\n    background-color: transparent !important;\n}\n\n.megamenu-menu-panel tbody tr:hover td:nth-child(2) {\n    color: inherit;\n}\n\n.megamenu-menu-panel .btn {\n\tbackground-color: #D2D1D1;\n}\n\n.btn-default {\n\tbackground-color: transparent;\n}\n\n.typora-sourceview-on #toggle-sourceview-btn,\n.ty-show-word-count #footer-word-count {\n\tbackground: #c7c5c5;\n}\n\n#typora-quick-open {\n    background-color: inherit;\n}\n\n.md-diagram-panel {\n\tmargin-top: 8px;\n}\n\n.file-list-item-file-name {\n\tfont-weight: initial;\n}\n\n.file-list-item-summary {\n\topacity: 1;\n}\n\n.file-list-item {\n\tcolor: #777;\n}\n\n.file-list-item.active {\n\tbackground-color: inherit;\n\tcolor: black;\n}\n\n.ty-side-sort-btn.active {\n\tbackground-color: inherit;\n}\n\n.file-list-item.active .file-list-item-file-name  {\n\tfont-weight: bold;\n}\n\n.file-list-item{\n    opacity:1 !important;\n}\n\n.file-library-node.active>.file-node-background{\n\tbackground-color: rgba(32, 43, 51, 0.63);\n\tbackground-color: var(--active-file-bg-color);\n}\n\n.file-tree-node.active>.file-node-content{\n\tcolor: white;\n\tcolor: var(--active-file-text-color);\n}\n\n.md-task-list-item>input {\n\tmargin-left: -1.7em;\n\tmargin-top: calc(1rem - 12px);\n\t-webkit-appearance: button;\n}\n\ninput {\n\tborder: 1px solid #aaa;\n}\n\n.megamenu-menu-header #megamenu-menu-header-title,\n.megamenu-menu-header:hover, \n.megamenu-menu-header:focus {\n\tcolor: inherit;\n}\n\n.dropdown-menu .divider {\n\tborder-color: #e5e5e5;\n\topacity: 1;\n}\n\n\/* https:\/\/github.com\/typora\/typora-issues\/issues\/2046 *\/\n.os-windows-7 strong,\n.os-windows-7 strong  {\n\tfont-weight: 760;\n}\n\n.ty-preferences .btn-default {\n\tbackground: transparent;\n}\n\n.ty-preferences .window-header {\n\tborder-bottom: 1px dashed #202B33;\n\tbox-shadow: none;\n}\n\n#sidebar-loading-template, #sidebar-loading-template.file-list-item {\n\tcolor: #777;\n}\n\n.searchpanel-search-option-btn.active {\n\tbackground: #777;\n\tcolor: white;\n}\n\n.export-detail, .light .export-detail, \n.light .export-item.active, \n.light .export-items-list-control {\n\tbackground: #e0e0e0;\n\tborder-radius: 2px;\n\tfont-weight: 700;\n\tcolor: inherit\n}\n\n\n<\/style><title>\u6b65\u9aa4\uff1a<\/title>\n<\/head>\n<body class='typora-export os-windows'><div class='typora-export-content'>\n<div id='write'  class=''><p><span>\u521a\u7528\u4e9a\u9a6c\u900a\u7684EC2\u670d\u52a1\u5668\u7ed9\u81ea\u5df1\u642d\u7684gitea\u505a\u53cd\u5411\u4ee3\u7406\uff0c\u4f46\u662f\u5728\u8fdc\u7aef\u670d\u52a1\u5668\u4e0a\u4f20\u7684\u65f6\u5019\u9047\u5230\u4e86\u62a5\u9519<\/span><\/p><p><code>error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413<\/code><\/p><p><span>\u54a8\u8be2chat\u8001\u5e08\uff0c\u5f97\u5230\u7684\u7b54\u6848\u662f\u670d\u52a1\u5668\u7aef\u9650\u5236\u4e86\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\uff0c\u4e4b\u524d\u5728<\/span><code>nextcloud<\/code><span>,<\/span><code>lsky pro<\/code><span>\u4e2d\u4e5f\u90fd\u9047\u5230\u8fc7\uff0c\u4eca\u5929\u89e3\u51b3\u4e00\u4e0b<\/span><\/p><p><span>\u5728 Nginx \u4e2d\u8bbe\u7f6e\u4e0a\u4f20\u7684\u6700\u5927\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e <\/span><code>client_max_body_size<\/code><span> \u6307\u4ee4\u6765\u5b9e\u73b0\u3002\u8fd9\u4e2a\u6307\u4ee4\u5b9a\u4e49\u4e86\u5ba2\u6237\u7aef\u8bf7\u6c42\u7684\u6700\u5927\u6709\u6548\u8f7d\u8377\u5927\u5c0f\uff0c\u5305\u62ec\u6587\u4ef6\u4e0a\u4f20\u3002<\/span><\/p><h3 id='\u6b65\u9aa4'><span>\u6b65\u9aa4\uff1a<\/span><\/h3><ol start='' ><li><p><strong><span>\u6253\u5f00 Nginx \u914d\u7f6e\u6587\u4ef6<\/span><\/strong><span>\uff1a<\/span>\n<span>Nginx \u7684\u4e3b\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e <\/span><code>\/etc\/nginx\/nginx.conf<\/code><span> \u6216\u8005 <\/span><code>\/etc\/nginx\/conf.d\/<\/code><span> \u76ee\u5f55\u4e0b\u7684\u7279\u5b9a\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002<\/span><\/p><\/li><li><p><strong><span>\u8bbe\u7f6e <\/span><code>client_max_body_size<\/code><\/strong><span>\uff1a<\/span>\n<span>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u627e\u5230 <\/span><code>http<\/code><span>\u3001<\/span><code>server<\/code><span> \u6216 <\/span><code>location<\/code><span> \u5757\uff08\u5177\u4f53\u8bbe\u7f6e\u4f4d\u7f6e\u53d6\u51b3\u4e8e\u4f60\u5e0c\u671b\u5e94\u7528\u7684\u8303\u56f4\uff09\uff0c\u7136\u540e\u6dfb\u52a0\u6216\u4fee\u6539 <\/span><code>client_max_body_size<\/code><span> \u6307\u4ee4\u3002\u4f8b\u5982\uff1a<\/span><\/p><pre class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" spellcheck=\"false\" lang=\"nginx\"><div class=\"CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap\" lang=\"nginx\"><div style=\"overflow: hidden; position: relative; width: 3px; height: 0px; top: 13.4253px; left: 33.993px;\"><textarea autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" style=\"position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;\"><\/textarea><\/div><div class=\"CodeMirror-scrollbar-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-gutter-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-scroll\" tabindex=\"-1\"><div class=\"CodeMirror-sizer\" style=\"margin-left: 30px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;\"><div style=\"position: relative; top: 0px;\"><div class=\"CodeMirror-lines\" role=\"presentation\"><div role=\"presentation\" style=\"position: relative; outline: none;\"><div class=\"CodeMirror-measure\"><pre><span>xxxxxxxxxx<\/span><\/pre><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\"><div>5<\/div><\/div><\/div><div class=\"CodeMirror-measure\"><\/div><div style=\"position: relative; z-index: 1;\"><\/div><div class=\"CodeMirror-code\" role=\"presentation\" style=\"\"><div class=\"CodeMirror-activeline\" style=\"position: relative;\"><div class=\"CodeMirror-activeline-background CodeMirror-linebackground\"><\/div><div class=\"CodeMirror-gutter-background CodeMirror-activeline-gutter\" style=\"left: -30px; width: 30px;\"><\/div><div class=\"CodeMirror-gutter-wrapper CodeMirror-activeline-gutter\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">1<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span class=\"cm-variable-2\">http<\/span> {<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">2<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">3<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-keyword\">client_max_body_size<\/span> 100M;<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">4<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">5<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre><\/div><\/div><\/div><\/div><\/div><\/div><div style=\"position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 154px;\"><\/div><div class=\"CodeMirror-gutters\" style=\"height: 154px; left: 0px;\"><div class=\"CodeMirror-gutter CodeMirror-linenumbers\" style=\"width: 29px;\"><\/div><\/div><\/div><\/div><\/pre><p><span>\u6216\u8005\u5728 <\/span><code>server<\/code><span> \u5757\u4e2d\uff1a<\/span><\/p><pre class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" spellcheck=\"false\" lang=\"nginx\"><div class=\"CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap\" lang=\"nginx\"><div style=\"overflow: hidden; position: relative; width: 3px; height: 0px; top: 13.4253px; left: 33.993px;\"><textarea autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" style=\"position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;\"><\/textarea><\/div><div class=\"CodeMirror-scrollbar-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-gutter-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-scroll\" tabindex=\"-1\"><div class=\"CodeMirror-sizer\" style=\"margin-left: 30px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;\"><div style=\"position: relative; top: 0px;\"><div class=\"CodeMirror-lines\" role=\"presentation\"><div role=\"presentation\" style=\"position: relative; outline: none;\"><div class=\"CodeMirror-measure\"><pre><span>xxxxxxxxxx<\/span><\/pre><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\"><div>5<\/div><\/div><\/div><div class=\"CodeMirror-measure\"><\/div><div style=\"position: relative; z-index: 1;\"><\/div><div class=\"CodeMirror-code\" role=\"presentation\" style=\"\"><div class=\"CodeMirror-activeline\" style=\"position: relative;\"><div class=\"CodeMirror-activeline-background CodeMirror-linebackground\"><\/div><div class=\"CodeMirror-gutter-background CodeMirror-activeline-gutter\" style=\"left: -30px; width: 30px;\"><\/div><div class=\"CodeMirror-gutter-wrapper CodeMirror-activeline-gutter\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">1<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span class=\"cm-variable-2\">server<\/span> {<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">2<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">3<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-keyword\">client_max_body_size<\/span> 100M;<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">4<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">5<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre><\/div><\/div><\/div><\/div><\/div><\/div><div style=\"position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 154px;\"><\/div><div class=\"CodeMirror-gutters\" style=\"height: 154px; left: 0px;\"><div class=\"CodeMirror-gutter CodeMirror-linenumbers\" style=\"width: 29px;\"><\/div><\/div><\/div><\/div><\/pre><p><span>\u6216\u8005\u5728 <\/span><code>location<\/code><span> \u5757\u4e2d\uff1a<\/span><\/p><pre class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" spellcheck=\"false\" lang=\"nginx\"><div class=\"CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap\" lang=\"nginx\"><div style=\"overflow: hidden; position: relative; width: 3px; height: 0px; top: 13.4253px; left: 33.993px;\"><textarea autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" style=\"position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;\"><\/textarea><\/div><div class=\"CodeMirror-scrollbar-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-gutter-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-scroll\" tabindex=\"-1\"><div class=\"CodeMirror-sizer\" style=\"margin-left: 30px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;\"><div style=\"position: relative; top: 0px;\"><div class=\"CodeMirror-lines\" role=\"presentation\"><div role=\"presentation\" style=\"position: relative; outline: none;\"><div class=\"CodeMirror-measure\"><pre><span>xxxxxxxxxx<\/span><\/pre><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\"><div>5<\/div><\/div><\/div><div class=\"CodeMirror-measure\"><\/div><div style=\"position: relative; z-index: 1;\"><\/div><div class=\"CodeMirror-code\" role=\"presentation\" style=\"\"><div class=\"CodeMirror-activeline\" style=\"position: relative;\"><div class=\"CodeMirror-activeline-background CodeMirror-linebackground\"><\/div><div class=\"CodeMirror-gutter-background CodeMirror-activeline-gutter\" style=\"left: -30px; width: 30px;\"><\/div><div class=\"CodeMirror-gutter-wrapper CodeMirror-activeline-gutter\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">1<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span class=\"cm-variable-2\">location<\/span> \/<span class=\"cm-tag\">upload <\/span>{<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">2<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">3<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp; &nbsp;<span class=\"cm-keyword\">client_max_body_size<\/span> 100M;<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\" style=\"left: 0px; width: 21px;\">4<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"> &nbsp;  ...<\/span><\/pre><\/div><div style=\"position: relative;\"><div class=\"CodeMirror-gutter-wrapper\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">5<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre><\/div><\/div><\/div><\/div><\/div><\/div><div style=\"position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 154px;\"><\/div><div class=\"CodeMirror-gutters\" style=\"height: 154px; left: 0px;\"><div class=\"CodeMirror-gutter CodeMirror-linenumbers\" style=\"width: 29px;\"><\/div><\/div><\/div><\/div><\/pre><p><span>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<\/span><code>100M<\/code><span> \u8868\u793a\u5c06\u6700\u5927\u6587\u4ef6\u5927\u5c0f\u9650\u5236\u4e3a 100 MB\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u66f4\u6539\u6b64\u503c\u3002<\/span><\/p><\/li><li><p><strong><span>\u4fdd\u5b58\u914d\u7f6e\u5e76\u91cd\u65b0\u52a0\u8f7d Nginx<\/span><\/strong><span>\uff1a<\/span>\n<span>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u4fdd\u5b58\u6587\u4ef6\u5e76\u91cd\u65b0\u52a0\u8f7d Nginx \u4ee5\u4f7f\u914d\u7f6e\u751f\u6548\uff1a<\/span><\/p><pre class=\"md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded\" spellcheck=\"false\" lang=\"bash\"><div class=\"CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap\" lang=\"bash\"><div style=\"overflow: hidden; position: relative; width: 3px; height: 0px; top: 13.4253px; left: 33.993px;\"><textarea autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\" tabindex=\"0\" style=\"position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;\"><\/textarea><\/div><div class=\"CodeMirror-scrollbar-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-gutter-filler\" cm-not-content=\"true\"><\/div><div class=\"CodeMirror-scroll\" tabindex=\"-1\"><div class=\"CodeMirror-sizer\" style=\"margin-left: 30px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;\"><div style=\"position: relative; top: 0px;\"><div class=\"CodeMirror-lines\" role=\"presentation\"><div role=\"presentation\" style=\"position: relative; outline: none;\"><div class=\"CodeMirror-measure\"><pre><span>xxxxxxxxxx<\/span><\/pre><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt\"><div>1<\/div><\/div><\/div><div class=\"CodeMirror-measure\"><\/div><div style=\"position: relative; z-index: 1;\"><\/div><div class=\"CodeMirror-code\" role=\"presentation\"><div class=\"CodeMirror-activeline\" style=\"position: relative;\"><div class=\"CodeMirror-activeline-background CodeMirror-linebackground\"><\/div><div class=\"CodeMirror-gutter-background CodeMirror-activeline-gutter\" style=\"left: -30px; width: 30px;\"><\/div><div class=\"CodeMirror-gutter-wrapper CodeMirror-activeline-gutter\" style=\"left: -30px;\"><div class=\"CodeMirror-linenumber CodeMirror-gutter-elt CodeMirror-linenumber-show\" style=\"left: 0px; width: 21px;\">1<\/div><\/div><pre class=\" CodeMirror-line \" role=\"presentation\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span class=\"cm-builtin\">sudo<\/span> nginx <span class=\"cm-attribute\">-s<\/span> reload<\/span><\/pre><\/div><\/div><\/div><\/div><\/div><\/div><div style=\"position: absolute; height: 0px; width: 1px; border-bottom: 0px solid transparent; top: 31px;\"><\/div><div class=\"CodeMirror-gutters\" style=\"height: 31px; left: 0px;\"><div class=\"CodeMirror-gutter CodeMirror-linenumbers\" style=\"width: 29px;\"><\/div><\/div><\/div><\/div><\/pre><\/li><\/ol><h3 id='\u914d\u7f6e\u8303\u56f4\u8bf4\u660e'><span>\u914d\u7f6e\u8303\u56f4\u8bf4\u660e\uff1a<\/span><\/h3><ul><li><p><span>\u5982\u679c\u4f60\u5728 <\/span><code>http<\/code><span> \u5757\u4e2d\u8bbe\u7f6e\u4e86 <\/span><code>client_max_body_size<\/code><span>\uff0c\u90a3\u4e48\u5b83\u5c06\u5e94\u7528\u4e8e\u6240\u6709\u7684\u670d\u52a1\u5668\u5757\u3002<\/span><\/p><\/li><li><p><span>\u5982\u679c\u5728 <\/span><code>server<\/code><span> \u5757\u4e2d\u8bbe\u7f6e\uff0c\u5b83\u53ea\u4f1a\u5f71\u54cd\u8be5\u670d\u52a1\u5668\u5757\u5185\u7684\u6240\u6709\u8bf7\u6c42\u3002<\/span><\/p><\/li><li><p><span>\u5982\u679c\u5728 <\/span><code>location<\/code><span> \u5757\u4e2d\u8bbe\u7f6e\uff0c\u5b83\u53ea\u4f1a\u5f71\u54cd\u8be5 <\/span><code>location<\/code><span> \u5339\u914d\u7684\u7279\u5b9a\u8def\u5f84\u3002<\/span><\/p><\/li><\/ul><p>&nbsp;<\/p><\/div><\/div>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u6b65\u9aa4\uff1a \u521a\u7528\u4e9a\u9a6c\u900a\u7684EC2\u670d\u52a1\u5668\u7ed9\u81ea\u5df1\u642d\u7684gitea\u505a\u53cd\u5411\u4ee3\u7406\uff0c\u4f46\u662f\u5728\u8fdc\u7aef\u670d\u52a1\u5668\u4e0a\u4f20\u7684\u65f6\u5019\u9047\u5230\u4e86\u62a5\u9519 erro<a class=\"more-link\" href=\"https:\/\/blog.mhrooz.xyz\/index.php\/2024\/08\/13\/nginx_she_zhi_zui_da_shang_chuan_wen_jian_xian_zhi\/\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">&#8220;Nginx\u8bbe\u7f6e\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u9650\u5236&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/posts\/2922"}],"collection":[{"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=2922"}],"version-history":[{"count":1,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/posts\/2922\/revisions"}],"predecessor-version":[{"id":2923,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/posts\/2922\/revisions\/2923"}],"wp:attachment":[{"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=2922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=2922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhrooz.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=2922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}