婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Nginx隱藏和偽造版本號的操作方法

Nginx隱藏和偽造版本號的操作方法

熱門標簽:400電話干嘛怎么申請信用卡 泰州智能外呼系統排名 400電話申請知乎 外呼系統虛擬號碼 百度地圖標注尺寸無法顯示 長春電銷外呼系統代理商 代理外呼系統創業 接電話機器人罵人 大連電銷外呼系統運營商

1、默認使用curl命令訪問:

# curl -I http://172.17.0.5

2、修改nginx.conf配置文件,在http配置段中新增如下代碼:

# vim /usr/local/nginx/conf/nginx.conf
server_tokens off;

3、修改fastcgi.conf配置文件,注釋如下代碼:

# vim /usr/local/nginx/conf/fastcgi.conf
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

4、重載Nginx:

# nginx -s reload

5、使用curl命令訪問:

# curl -I http://172.17.0.5

6、偽造Nginx的名稱和版本號:

# vim /usr/src/nginx-1.16.1/src/core/nginx.h,修改如下代碼
#define NGINX_VERSION "1.16.1" --> #define NGINX_VERSION "2.3.2"
#define NGINX_VER "nginx/" NGINX_VERSION --> #define NGINX_VER "Tengine/" NGINX_VERSION
# cd /usr/src/nginx-1.16.1
# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module --with-stream_ssl_preread_module --with-compat --with-pcre
# make && make install
# cd /usr/local/nginx/conf
# vim nginx.conf,刪除之前新增的代碼:server_tonkens off;
# nginx -s stop
# nginx

7、使用curl命令訪問:

# curl -I http://172.17.0.5

總結

以上所述是小編給大家介紹的Nginx隱藏和偽造版本號的操作方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!
如果你覺得本文對你有幫助,歡迎轉載,煩請注明出處,謝謝!

標簽:臺灣 中衛 興安盟 清遠 大慶 雅安 安陽 長治

巨人網絡通訊聲明:本文標題《Nginx隱藏和偽造版本號的操作方法》,本文關鍵詞  Nginx,隱藏,和,偽造,版本,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Nginx隱藏和偽造版本號的操作方法》相關的同類信息!
  • 本頁收集關于Nginx隱藏和偽造版本號的操作方法的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 江安县| 长顺县| 淮安市| 建湖县| 南部县| 剑河县| 财经| 米泉市| 乌鲁木齐市| 佛学| 东乌| 怀集县| 崇礼县| 临邑县| 开原市| 上饶县| 女性| 浦江县| 邢台市| 台南市| 威远县| 曲阳县| 延吉市| 洮南市| 钟山县| 南城县| 余干县| 周至县| 临夏市| 德惠市| 慈溪市| 成安县| 建湖县| 太康县| 河西区| 涞源县| 芒康县| 蛟河市| 金平| 革吉县| 绵竹市|