需求:将nginx中的Server資訊隐藏掉。 解決方法: 隻需要在nginx.conf中的http子產品中加入以下代碼即可。 server_tokens off; 然後編輯儲存,重新開機nginx即可。