<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Version on Net Boy</title>
    <link>https://lian.st/tags/version/</link>
    <description>Recent content in Version on Net Boy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 09 Feb 2023 20:18:50 +0800</lastBuildDate><atom:link href="https://lian.st/tags/version/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Nginx隐藏版本号</title>
      <link>https://lian.st/posts/b387f540/</link>
      <pubDate>Thu, 09 Feb 2023 20:18:50 +0800</pubDate>
      
      <guid>https://lian.st/posts/b387f540/</guid>
      
      <description>&lt;h2 id=&#34;修改&#34;&gt;修改&lt;/h2&gt;
&lt;p&gt;編輯你的nginx主配置文件，新增server_tokens off;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; 53         gzip_vary on;
 54         gzip_proxied   expired no-cache no-store private auth;
 55         gzip_disable   &amp;#34;MSIE [1-6]\.&amp;#34;;
 56 
 57         #limit_conn_zone $binary_remote_addr zone=perip:10m;
 58         ##If enable limit_conn_zone,add &amp;#34;limit_conn perip 10;&amp;#34; to server section.
 59 
 60         server_tokens off;  # 設定爲off即可隱藏nginx版本號
 61         access_log off;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;生效&#34;&gt;生效&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nginx -t 
nginx -s reload
&lt;/code&gt;&lt;/pre&gt;</description>
      
    </item>
    
  </channel>
</rss>
