中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

做二手的網(wǎng)站都有哪些互聯(lián)網(wǎng)推廣軟件

做二手的網(wǎng)站都有哪些,互聯(lián)網(wǎng)推廣軟件,單位網(wǎng)站建設(shè)情況說明,wordpress 4.9.1模板文章目錄 Argon主題美化插件類類別標(biāo)簽頁面更新管理器文章頭圖URL查詢監(jiān)視器WordPress提供Markdown語法評(píng)論區(qū)頭像設(shè)置發(fā)信設(shè)置隱藏登陸備份設(shè)置緩存插件 主題文件編輯器頁腳顯示在線人數(shù)備案信息(包含備案信息網(wǎng)站運(yùn)行時(shí)間)banner下方小箭頭滾動(dòng)效果站點(diǎn)功能概覽下方Links功能…

文章目錄

  • Argon主題美化
    • 插件類
      • 類別標(biāo)簽頁面
      • 更新管理器
      • 文章頭圖URL
      • 查詢監(jiān)視器
      • WordPress提供Markdown語法
      • 評(píng)論區(qū)頭像設(shè)置
      • 發(fā)信設(shè)置
      • 隱藏登陸
      • 備份設(shè)置
      • 緩存插件
    • 主題文件編輯器
      • 頁腳顯示在線人數(shù)
      • 備案信息(包含備案信息+網(wǎng)站運(yùn)行時(shí)間)
      • banner下方小箭頭滾動(dòng)效果
      • 站點(diǎn)功能概覽下方Links功能
    • 額外CSS
    • 頁頭腳本
    • 頁尾腳本
  • 錯(cuò)誤解決
      • 413 request Entity too Large
      • 設(shè)置http響應(yīng)頭Cache-Control及Pragma,增加CDN cache命中率
      • wordpress更改固定鏈接模式后前臺(tái)文件打開404

Argon主題美化

插件類

類別標(biāo)簽頁面

Category Tag Pages插件

為您的頁面添加類別和標(biāo)簽功能

更新管理器

Easy Updates Manager插件 可以關(guān)閉wordpress翻譯更新

文章頭圖URL

Featured Image from URL (FIFU)插件

查詢監(jiān)視器

Query Monitor插件

  1. 頁面生成時(shí)間(以秒為單位)
  2. 峰值內(nèi)存使用量
  3. SQL 查詢所用的總時(shí)間(以秒為單位)
  4. SQL 查詢總數(shù)

WordPress提供Markdown語法

WP Githuber MD插件

評(píng)論區(qū)頭像設(shè)置

WP-China-Yes 插件

發(fā)信設(shè)置

除了發(fā)信,還可以屏蔽一些WordPress不常用的功能

WPJAM BASIC 插件

隱藏登陸

可以自定義設(shè)置登陸地址

WPS Hide Login插件

備份設(shè)置

WPvivid 備份插件

緩存插件

WP super cache插件

主題文件編輯器

頁腳顯示在線人數(shù)

# 網(wǎng)站顯示 外觀 >> 主題文件編輯器 >> footer.php(主題頁腳)也可以添加到Argon主題選項(xiàng)的頁腳欄中
# 在第四行以后插入
<?php
$online_log = "/usr/local/nginx/html/wordpress/wp-content/themes/argon-theme-master/maplers.dat"; // 保存人數(shù)的文件路徑(根據(jù)實(shí)際情況設(shè)置)
$timeout = 30; // 30秒內(nèi)沒動(dòng)作者,認(rèn)為掉線// 檢查文件是否存在,如果不存在則創(chuàng)建它
if (!file_exists($online_log)) {$fp = fopen($online_log, "w");fclose($fp);chmod($online_log, 0666); // 設(shè)置文件權(quán)限為可讀可寫
}$entries = file($online_log);
$temp = array();for ($i = 0; $i < count($entries); $i++) {$entry = explode(",", trim($entries[$i]));if (($entry[0] != $_SERVER['REMOTE_ADDR']) && ($entry[1] > time())) {array_push($temp, $entry[0] . "," . $entry[1] . "\n");}
}
array_push($temp, $_SERVER['REMOTE_ADDR'] . "," . (time() + ($timeout)) . "\n");
$maplers = count($temp);$entries = implode("", $temp);// 寫入文件
$fp = fopen($online_log, "w");
flock($fp, LOCK_EX);
fputs($fp, $entries);
flock($fp, LOCK_UN);
fclose($fp);echo "當(dāng)前在線人數(shù):".$maplers."人";
?>

備案信息(包含備案信息+網(wǎng)站運(yùn)行時(shí)間)

# 網(wǎng)站顯示 外觀 >> 主題文件編輯器 >> footer.php(主題頁腳) 也可以添加到Argon主題選項(xiàng)的頁腳欄中
# 在第四行以后插入
<style>
/* 核心樣式 */
.github-badge {
display: inline-block;
border-radius: 4px;
text-shadow: none;
font-size: 13.1px;
color: #fff;
line-height: 15px;
margin-bottom: 5px;
font-family: "Open Sans", sans-serif;
}
.github-badge .badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
font-family: "Open Sans", sans-serif;
}
.github-badge .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
font-family: "Open Sans", sans-serif;
}
.github-badge-big {
display: inline-block;
border-radius: 6px;
text-shadow: none;
font-size: 14.1px;
color: #fff;
line-height: 18px;
margin-bottom: 7px;
}
.github-badge-big .badge-subject {
display: inline-block;
background-color: #4d4d4d;
padding: 4px 4px 4px 6px;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.github-badge-big .badge-value {
display: inline-block;
padding: 4px 6px 4px 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.bg-orange {
background-color: #ec8a64 !important;
}
.bg-red {
background-color: #cb7574 !important;
}
.bg-apricots {
background-color: #f7c280 !important;
}
.bg-casein {
background-color: #dfe291 !important;
}
.bg-shallots {
background-color: #97c3c6 !important;
}
.bg-ogling {
background-color: #95c7e0 !important;
}
.bg-haze {
background-color: #9aaec7 !important;
}
.bg-mountain-terrier {
background-color: #99a5cd !important;
}
</style><div class="github-badge-big"><span class="badge-subject"><i class="fa fa-id-card"></i> 備案號(hào) </span><span class="badge-value bg-orange"><!-- 備案鏈接 --><a href="https://beian.miit.gov.cn/" target="_blank" one-link-mark="yes">晉ICP備1111號(hào)</a> |<a href="https://www.beian.gov.cn/portal/index?token=e547b70c-fbe1-4c80-a4a2-857b17389a71" target="_blank" one-link-mark="yes"><img src="圖片" alt="晉公網(wǎng)安備11111號(hào)">晉公網(wǎng)安備14050002001833號(hào)</a></span>
</div><!-- 運(yùn)行時(shí)間 --><div class="github-badge-big"><span class="badge-subject"><i class="fa fa-clock-o"></i> Running Time</span><spanclass="badge-value bg-apricots"><span id="blog_running_days" class="odometer odometer-auto-theme"></span>days<span id="blog_running_hours" class="odometer odometer-auto-theme"></span> H<span id="blog_running_mins" class="odometer odometer-auto-theme"></span> M<span id="blog_running_secs" class="odometer odometer-auto-theme"></span>S</span><script no-pjax="">
var blog_running_days = document.getElementById("blog_running_days");
var blog_running_hours = document.getElementById("blog_running_hours");
var blog_running_mins = document.getElementById("blog_running_mins");
var blog_running_secs = document.getElementById("blog_running_secs");
function refresh_blog_running_time() {
var time = new Date() - new Date(2024, 4, 8, 0, 0, 0); /*此處日期的月份改為自己真正月份的前一個(gè)月*/
var d = parseInt(time / 24 / 60 / 60 / 1000);
var h = parseInt((time % (24 * 60 * 60 * 1000)) / 60 / 60 / 1000);
var m = parseInt((time % (60 * 60 * 1000)) / 60 / 1000);
var s = parseInt((time % (60 * 1000)) / 1000);
blog_running_days.innerHTML = d;
blog_running_hours.innerHTML = h;
blog_running_mins.innerHTML = m;
blog_running_secs.innerHTML = s;
}
refresh_blog_running_time();
if (typeof bottomTimeIntervalHasSet == "undefined") {
var bottomTimeIntervalHasSet = true;
setInterval(function () {
refresh_blog_running_time();
}, 500);
}
</script>

banner下方小箭頭滾動(dòng)效果

  1. 打開 外觀->主題文件編輯器
  2. 在右側(cè) 主題文件 處找到 主題頁眉(header.php文件)
  3. CTRL + F 查詢關(guān)鍵字cover-scroll-down
  4. 內(nèi)容替換為如下圖片內(nèi)容

image-20240612131459582

<i class="fa fa-angle-down" aria-hidden="true" id="pointer1"></i>
<i class="fa fa-angle-down" aria-hidden="true" id="pointer2"></i>
<i class="fa fa-angle-down" aria-hidden="true" id="pointer3"></i>

接著額外CSS(外觀 >> 自定義 >> 額外CSS)添加

/* 滑動(dòng)塊 */
@keyframes up-down-move {
0% {
opacity:0;
transform:translate(-50%,-150px); 
}
50% {
opacity:1;
transform:translate(-50%,-130px); 
}
100% {
opacity:0;
transform:translate(-50%,-110px); 
}
}.cover-scroll-down .fa-angle-down{
font-size: 3rem;
text-shadow: 0px 0px 8px #dc1111;
position:absolute;
transform: translate(-50%,-80px);
opacity:0;
}.cover-scroll-down #pointer1{
animation: up-down-move 3s linear infinite;}.cover-scroll-down #pointer2{
animation: up-down-move 3s 1s linear infinite;
}.cover-scroll-down #pointer3{
animation: up-down-move 3s 2s linear infinite;
}

站點(diǎn)功能概覽下方Links功能

image-20240612131949039

  1. 打開 外觀->主題文件編輯器
  2. 在右側(cè) 主題文件 處找到 邊欄(sidebar.php文件)
  3. 找到對(duì)應(yīng)行
  4. 內(nèi)容替換為如下圖片內(nèi)容

image-20240612132240705

<div class="site-friend-links">
<div class="site-friend-links-title"><i class="fa fa-fw fa-link"></i> Links</div>
<ul class="site-friend-links-ul">												
<li class="site-friend-links-item">
<a href="https://music.163.com/#/playlist?id=2179738992" rel="noopener" target="_blank"><i class="fa fa-music" aria-hidden="true"></i> Music</a></li>				
<li class="site-friend-links-item">
<a href="https://blog.csdn.net/qq_52089863" rel="noopener" target="_blank"><i class="fa fa-paper-plane" aria-hidden="true"></i> CSDN</a></li></ul></div>

額外CSS

外觀 >> 自定義 >> 額外CSS

/*=========字體設(shè)置============*//*字體*/
@font-face {
font-family: myFont;
src:url('URL') format('woff2');
font-display: swap;
}body,
.nav-link-inner--text {
font-family: myFont;
}.navbar-brand {
font-size: 1.25rem;
font-weight: 100;
margin-right: 2rem;
padding-bottom: .1rem;
}/*設(shè)置加粗字體顏色*/
strong {/*白天*/color: black;
}
html.darkmode strong {/*夜晚*/color: black;
}/*說說預(yù)覽模式的代碼字體顏色*/
pre {/*白天*/color: #A7727D;
}
html.darkmode pre {/*夜晚*/color: #FAAB78;
}/*文章標(biāo)題字體大小*/
.post-title {font-size: 30px
}/*正文字體大小(不包含代碼)*/
.post-content p{font-size: 1.25rem;
}
li{font-size: 1.2rem;
}/*評(píng)論區(qū)字體大小*/
p {font-size: 1.2rem
}/*評(píng)論發(fā)送區(qū)字體大小*/
.form-control{font-size: 1.2rem
}/*評(píng)論勾選項(xiàng)目字體大小*/
.custom-checkbox .custom-control-input~.custom-control-label{font-size: 1.2rem
}/*評(píng)論區(qū)代碼的強(qiáng)調(diào)色*/
code {color: rgba(var(--themecolor-rgbstr));
}/*說說字體大小和顏色設(shè)置*/
.shuoshuo-title {font-size: 25px;
/*  color: rgba(var(--themecolor-rgbstr)); */
}/*尾注字體大小*/
.additional-content-after-post{font-size: 1.2rem
}/*========顏色設(shè)置===========*//*文章或頁面的正文顏色*/
body{color:#364863
}/*``引用顏色設(shè)置*/
code {color: #fb6340 !important;
}li {color: black !important;font-weight: bold !important;
}/*引文屬性設(shè)置*/
blockquote {
border-left: 4px solid #607d8b!important;/*添加弱主題色為背景色*/background: rgba(var(--themecolor-rgbstr), 0.12) !important;width: 100%
}/*引文顏色 建議用主題色*/
:root {/*也可以用類似于--color-border-on-foreground-deeper: #009688;這樣的命令*/--color-border-on-foreground-deeper: rgba(var(--themecolor-rgbstr));
}/*左側(cè)菜單欄突出顏色修改*/
.leftbar-menu-item > a:hover, .leftbar-menu-item.current > a{background-color: #f9f9f980;
}/*站點(diǎn)概覽分隔線顏色修改*/
.site-state-item{border-left: 1px solid #aaa;
}
.site-friend-links-title {border-top: 1px dotted #aaa;
}
#leftbar_tab_tools ul li {padding-top: 3px;padding-bottom: 3px;border-bottom:none;
}
html.darkmode #leftbar_tab_tools ul li {border-bottom:none;
}/*========排版設(shè)置===========*//*左側(cè)欄層級(jí)置于上層*/
#leftbar_part1 {z-index: 1;
}/*分類卡片文本居中*/
#content > div.page-information-card-container > div > div{text-align:center;
}/*子菜單對(duì)齊及樣式調(diào)整*/
.dropdown-menu .dropdown-item>i{width: 10px;
}
.dropdown-menu>a {color:var(--themecolor);
}
.dropdown-menu{min-width:max-content;
}
.dropdown-menu .dropdown-item {padding: .5rem 1.5rem 0.5rem 1rem;
}
.leftbar-menu-subitem{min-width:max-content;
}
.leftbar-menu-subitem .leftbar-menu-item>a{padding: 0rem 1.5rem 0rem 1rem;
}/*左側(cè)欄邊距修改*/
.tab-content{padding:10px 0px 0px 0px !important;
}
.site-author-links{padding:0px 0px 0px 10px ;
}/*目錄位置偏移修改*/
#leftbar_catalog{margin-left: 0px;
}/*目錄條目邊距修改*/
#leftbar_catalog .index-link{padding: 4px 4px 4px 4px;
}/*左側(cè)欄小工具欄字體縮小*/
#leftbar_tab_tools{font-size: 14px;
}/*正文圖片邊距修改*/
article figure {margin:0;}
/*正文圖片居中顯示*/
.fancybox-wrapper {margin: auto;
}/*正文表格樣式修改*/
article table > tbody > tr > td,
article table > tbody > tr > th,
article table > tfoot > tr > td,
article table > tfoot > tr > th,
article table > thead > tr > td,
article table > thead > tr > th{padding: 8px 15px;border: 1px solid;
}/*表格居中樣式*/
.wp-block-table.aligncenter{margin:10px auto;}/*========鼠標(biāo)樣式===========*/
body {
cursor: url(https://cdn.chenshiren.cool/images/202405141954908.cur), default;
}/** 鏈接指針樣式**/ 
a:hover{cursor:url(https://cdn.chenshiren.cool/images/202405141954895.cur), pointer;}/*========背景樣式===========*/
/*日間模式背景透明*/
.card{
background-color:rgba(255, 255, 255, 0.9) !important;-webkit-backdrop-filter:blur(6px);
}/*夜間模式背景透明*/
html.darkmode.bg-white,html.darkmode .card,html.darkmode #footer{
background:rgba(66, 66, 66, 0.9) !important;
}
html.darkmode #fabtn_blog_settings_popup{
background:rgba(66, 66, 66, 0.9) !important;
}/*小工具欄背景透明*/
.card .widget,.darkmode .card .widget,#post_content > div > div > div.argon-timeline-card.card.bg-gradient-secondary.archive-timeline-title{
background-color:#ffffff00 !important;
backdrop-filter:none;
-webkit-backdrop-filter:none;
}
.emotion-keyboard,#fabtn_blog_settings_popup{
background-color:rgba(255, 255, 255, 0.95) !important;
}/*頂欄標(biāo)題放大*/
.navbar-nav .nav-link {
font-size: 1.2rem;
}
.navbar-brand {
font-size: 1.2rem;
margin-right: 0.5rem;
padding-bottom: .1rem;
}
.navbar-nav .nav-item {
margin-right:1;
}
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: 0.9rem;
padding-left: 2rem;
}leftbar_overview_author_image {width: 100px;height: 100px;margin: auto;background-position: center;background-repeat: no-repeat;background-size: cover;background-color: rgba(127, 127, 127, 0.1);overflow: hidden;box-shadow: 0 0 5px rgba(116, 8, 204, 0.3);transition: transform 0.3s ease; /*變化速度*/
}/*頭像放大*/
#leftbar_overview_author_image:hover {transform: scale(1.2); /*縮放大小*/filter: brightness(105%); /*調(diào)節(jié)亮度*/
}/* 標(biāo)題縮放 */
.banner-title{transition: .8s cubic-bezier(.2,.8,.2,1);
}
.banner-title:hover {transform:scale(1.2) translateY(-50%);
}/* 作者名稱 */
#leftbar_overview_author_name {
margin-top: 15px;
font-size: 18px;align-content;
color:#607d8b;
}/* 作者名稱自動(dòng)縮放 */
#leftbar_overview_author_name {background-position: center;background-repeat: no-repeat;background-size: cover;overflow: hidden;transition: transform 0.3s ease; /*變化速度*/
}
#leftbar_overview_author_name:hover {transform: scale(1.2); /*縮放大小*/filter: brightness(110%); /*調(diào)節(jié)亮度*/
}/* 簡介 */
#leftbar_overview_author_description {
font-size: 14px;
margin-top: -4px;
opacity: 0.8;
color:#607d8b;
}/* 滑動(dòng)塊 */
@keyframes up-down-move {
0% {
opacity:0;
transform:translate(-50%,-150px); 
}
50% {
opacity:1;
transform:translate(-50%,-130px); 
}
100% {
opacity:0;
transform:translate(-50%,-110px); 
}
}.cover-scroll-down .fa-angle-down{
font-size: 3rem;
text-shadow: 0px 0px 8px #dc1111;
position:absolute;
transform: translate(-50%,-80px);
opacity:0;
}.cover-scroll-down #pointer1{
animation: up-down-move 3s linear infinite;}.cover-scroll-down #pointer2{
animation: up-down-move 3s 1s linear infinite;
}.cover-scroll-down #pointer3{
animation: up-down-move 3s 2s linear infinite;
}

頁頭腳本

特效地址

放在頁頭腳本中

# 點(diǎn)擊愛心特效
<script type="text/javascript">! function (e, t, a) {function r() {for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x +"px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");requestAnimationFrame(r)}function n() {var t = "function" == typeof e.onclick && e.onclick;e.onclick = function (e) {t && t(), o(e)}}function o(e) {var a = t.createElement("div");a.className = "heart", s.push({el: a,x: e.clientX - 5,y: e.clientY - 5,scale: 1,alpha: 1,color: c()}), t.body.appendChild(a)}function i(e) {var a = t.createElement("style");a.type = "text/css";try {a.appendChild(t.createTextNode(e))} catch (t) {a.styleSheet.cssText = e}t.getElementsByTagName("head")[0].appendChild(a)}function c() {return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"}var s = [];e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {setTimeout(e, 1e3 / 60)}, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()}(window, document);</script>

頁尾腳本

3D卡片效果

<!--回頂圖標(biāo)修改--><script>
$("#fabtn_back_to_top > span > i").removeClass("fa fa-angle-up");
$("#fabtn_back_to_top > span > i").addClass("fa fa-arrow-up");
</script><!--卡片3D效果腳本--><script src="https://cdn.jsdelivr.net/gh/huangwb8/bloghelper/vanilla3D/vanilla-tilt.min.js"></script>
<!--判斷是否為Safari瀏覽器--><script>var isSafari = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);</script><!--以下內(nèi)容每次跳轉(zhuǎn)新頁面都執(zhí)行,pjax額外處理--><script>
window.pjaxLoaded = function () {//站點(diǎn)概覽點(diǎn)擊頭像或作者名跳轉(zhuǎn)到關(guān)于頁$("#leftbar_overview_author_image").wrapAll('<a href="/about" /a>');$("#leftbar_overview_author_name").wrapAll('<a href="/about" /a>');//卡片3D效果if (screen.width >= 768 && !isSafari) {VanillaTilt.init(document.querySelectorAll("article.post:not(.post-full), .shuoshuo-preview-container"), {reverse: true,  // reverse the tilt directionmax: 8,     // max tilt rotation (degrees)startX: 0,      // the starting tilt on the X axis, in degrees.startY: 0,      // the starting tilt on the Y axis, in degrees.perspective: 1000,   // Transform perspective, the lower the more extreme the tilt gets.scale: 1.02,      // 2 = 200%, 1.5 = 150%, etc..speed: 600,    // Speed of the enter/exit transitiontransition: false,   // Set a transition on enter/exit.axis: "y",    // What axis should be banned. Can be "x", "y", or nullreset: true,   // If the tilt effect has to be reset on exit.easing: "cubic-bezier(.03,.98,.52,.99)",    // Easing on enter/exit.glare: false,  // if it should have a "glare" effect"max-glare": 0.8,      // the maximum "glare" opacity (1 = 100%, 0.5 = 50%)"glare-prerender": false,  // false = VanillaTilt creates the glare elements for you, otherwise// you need to add .js-tilt-glare>.js-tilt-glare-inner by yourself"mouse-event-element": null,   // css-selector or link to HTML-element what will be listen mouse eventsgyroscope: true,   // Boolean to enable/disable device orientation detection,gyroscopeMinAngleX: -45,    // This is the bottom limit of the device angle on X axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the left border of the element;gyroscopeMaxAngleX: 45,     // This is the top limit of the device angle on X axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the right border of the element;gyroscopeMinAngleY: -45,    // This is the bottom limit of the device angle on Y axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the top border of the element;gyroscopeMaxAngleY: 45,     // This is the top limit of the device angle on Y axis, meaning that a device rotated at this angle would tilt the element as if the mouse was on the bottom border of the element;})}
}
window.pjaxLoaded();
</script>

Argon主題美化參考文檔:

Argon主題美化 - 北冥紅燒魚的芥子空間 (hongshaoyv.com)

Argon主題博客美化 – Echo小窩 (liveout.cn)

Docker系列 WordPress系列 特效 - Bensz (hwb0307.com)

錯(cuò)誤解決

413 request Entity too Large

配置參數(shù):
? 1)配置請(qǐng)求體緩存區(qū)大小
? client_body_buffer_size 10m;
? 2)配置客戶端請(qǐng)求體最大值
? client_max_body_size 20m;
? 3)設(shè)置臨時(shí)文件存放路徑(可選配置)
? client_body_temp_path /data/temp;
? ps:設(shè)置臨時(shí)文件存放路徑。只有當(dāng)上傳的請(qǐng)求體超出緩存區(qū)大小時(shí),才會(huì)寫到臨時(shí)文件 中,注意臨時(shí)路徑要有寫入權(quán)限
配置設(shè)置:
? 1)在http{ }中設(shè)置:client_max_body_size 20m;
? 2)選擇在server{ }中設(shè)置:client_max_body_size 20m;
? 3)選擇在location{ }中設(shè)置:client_max_body_size 20m;
? 區(qū)別:http{} 中控制著所有nginx收到的請(qǐng)求;而報(bào)文大小限制設(shè)置在server{}中,則控制該 server收到的請(qǐng)求報(bào)文大小,同理,如果配置在location中,則報(bào)文大小限制,只對(duì)匹 配了location 路由規(guī)則的請(qǐng)求生效。
  • http{}中輸入

    設(shè)置到http{}內(nèi),控制全局nginx所有請(qǐng)求報(bào)文大小

#配置客戶端請(qǐng)求體最大值
client_max_body_size 20M;
#配置請(qǐng)求體緩存區(qū)大小
client_body_buffer_size 10m;
  • server{}中輸入

    設(shè)置到server{}內(nèi),控制該server的所有請(qǐng)求報(bào)文大小

#配置客戶端請(qǐng)求體最大值
client_max_body_size 20M;
#配置請(qǐng)求體緩存區(qū)大小
client_body_buffer_size 10m;
  • location{}中輸入

    設(shè)置到location{}內(nèi),控制滿足該路由規(guī)則的請(qǐng)求報(bào)文大小

#配置客戶端請(qǐng)求體最大值
client_max_body_size 20M;
#配置請(qǐng)求體緩存區(qū)大小
client_body_buffer_size 10m;

此內(nèi)容報(bào)錯(cuò)來自:https://blog.csdn.net/ludp1997/article/details/114256809

設(shè)置http響應(yīng)頭Cache-Control及Pragma,增加CDN cache命中率

最近在折騰 [CDN cache](http://www.dnsdizhi.com/cdncache.html) 命中率。然后就發(fā)現(xiàn)在偽靜態(tài)環(huán)境下, [cdn](http://www.dnsdizhi.com/cdn/) 緩存命中率非常低,一番折騰后發(fā)現(xiàn)如果源站的http頭部包含一些不緩存的信息,那么CDN”也許“會(huì)相應(yīng)的繼承源站發(fā)出的HTTP狀態(tài)。
通常喜歡用軍哥LNMP安裝包的朋友會(huì)發(fā)現(xiàn),在動(dòng)態(tài)及偽靜態(tài)的環(huán)境中,HTTP頭部信息會(huì)包含Cache-Control: no-store,no-cache,must-revalidate,post-check=0,pre-check=0 和 Pragma: no-cache,“可能“就是這種狀態(tài)影響了CDN對(duì)源站緩存的判斷。如何去掉Cache-Control及Pragma在http頭部中的狀態(tài)呢?
如果沒有看到此文的話,你會(huì)非常痛苦的認(rèn)為是網(wǎng)站程序本身所發(fā)出的狀態(tài),然后一番查找修改后發(fā)現(xiàn)依然無解,我理解這個(gè)過程,因?yàn)槲揖褪沁@么干的。非常之痛苦。。。。其實(shí)解決Cache-Control: no-store,no-cache.....和Pragma: no-cache很簡單,只需修改php.ini中的session.cache_limiter參數(shù),軍哥lnmp默認(rèn)值是nocache,只要修改為none即可解決這個(gè)HTTP狀態(tài)中的緩存問題。耶!耶!耶!耶!耶~~~~~~~~~
session.cache_limiter = nocache
改為 
session.cache_limiter = none
重啟apache

此內(nèi)容來源于:http://www.dnsdizhi.com/cdncache.html

wordpress更改固定鏈接模式后前臺(tái)文件打開404

首先更改wordpress固定鏈接

Nginx環(huán)境

vim /你的Nginx安裝目錄/conf/nginx.conf# 添加如下代碼
if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){rewrite (.*) $1/index.php;
}
if (!-f $request_filename){rewrite (.*) /index.php;
}# 重啟nginx
systemctl restart nginx
http://m.risenshineclean.com/news/63276.html

相關(guān)文章:

  • 鞍山市做網(wǎng)站公司軟件開發(fā)培訓(xùn)中心
  • 做網(wǎng)站php和asp哪個(gè)好100%上熱門文案
  • wordpress 4.0百度seo搜索引擎優(yōu)化方案
  • 德宏網(wǎng)站建設(shè)公司項(xiàng)目優(yōu)化seo
  • 如何進(jìn)行網(wǎng)站維護(hù)軟文大全800字
  • 重復(fù)打開同一個(gè)網(wǎng)站怎么做今天特大軍事新聞
  • 保定做網(wǎng)站建設(shè)門戶網(wǎng)站軟文
  • 網(wǎng)站制作需要學(xué)多久百度宣傳推廣費(fèi)用
  • 德清網(wǎng)站公司建設(shè)創(chuàng)建自己的網(wǎng)頁
  • java軟件開發(fā)流程長沙有實(shí)力seo優(yōu)化
  • 谷歌推廣網(wǎng)站怎么做b站推廣怎么買
  • 外貿(mào)公司 如何做公司網(wǎng)站怎么才能創(chuàng)建一個(gè)網(wǎng)站
  • 國內(nèi)網(wǎng)站建設(shè)哪家好高級(jí)搜索
  • wordpress懸浮小工具的插件seo文章排名優(yōu)化
  • 可以做軟件的網(wǎng)站有哪些內(nèi)容百度詞條優(yōu)化
  • hishop網(wǎng)站頁面排名優(yōu)化
  • 電商網(wǎng)站建設(shè)方案模板下載安卓系統(tǒng)優(yōu)化app
  • wordpress站內(nèi)計(jì)費(fèi)搜索品牌推廣與傳播怎么寫
  • 泗涇做網(wǎng)站成都網(wǎng)站建設(shè)公司
  • 日照網(wǎng)站建建設(shè)百度搜索推廣技巧
  • 鄭州門戶網(wǎng)站建設(shè)手機(jī)系統(tǒng)流暢神器
  • 南通網(wǎng)站制作公司哪家好谷歌搜索引擎在線
  • 2021拉新推廣傭金排行榜南通百度seo代理
  • 設(shè)計(jì)網(wǎng)站價(jià)格網(wǎng)站搜索排名查詢
  • 域名注冊(cè)完成后如何做網(wǎng)站google關(guān)鍵詞
  • 建站最少需要多少錢人員優(yōu)化是什么意思
  • 怎樣做網(wǎng)站國外seo外鏈發(fā)布平臺(tái)有哪些
  • 冠縣快搜網(wǎng)站建設(shè)有限公司蘭州seo技術(shù)優(yōu)化排名公司
  • 樂清做網(wǎng)站公司關(guān)鍵詞推廣工具
  • 深圳做網(wǎng)站建設(shè)比較好的公司義烏最好的電商培訓(xùn)學(xué)校