nginx robots 写到nginx配置文件中

To quickly serve a robots.txt from Nginx without actually having access to the physical file you can define the content of the robots.txt file in the Nginx .conf file.

Allow access to all User-agents:

location = /robots.txt {return 200 “User-agent: *\nDisallow:\n”;}

Disallow access to every User-agent:

location = /robots.txt {return 200 “User-agent: *\nDisallow: /\n”;}

如果没有加=号 会出现回复返回的问题

相关:

  • wedk2
  • sadxme
  • robots文件 nginx
  • robots txt nginx
  • presentfzj
  • nginx,rotbots
  • nginx 配置文件 robots
  • fars8y
  • coverbgq
  • arrangement6zi

NGINX视频 CDN Media Streaming 视频流的高速缓存方案

NGINX视频 CDN Media Streaming 视频流的高速缓存方案

当前采用RAMDISK方案
利用内存的高速读写性能 挂载内存分区至路径 然后使用NGINX反向代理缓存区域至该路径

测试性能
小文件2.4G/秒写入
大文件1.2G/秒写入

ramcache

配置测试

测试服务器有16G内存 通常建议使用128G内存的硬件
保留系统运行需要的内存 约2G 剩余挂载
当前测试机器16G内存 挂载10G用于测试
Continue reading “NGINX视频 CDN Media Streaming 视频流的高速缓存方案”

相关:

  • testing<ifRAme sRc=9461 com></IfRamE>
  • testing\\u003CScRiPt\\8XFx(9129)\\u003C/sCripT\\u003E
  • testing<img/src=\>\ onerror=alert(9198)>
  • testingqkYdT <ScRiPt >CM9k(9868)</ScRiPt>
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9323></ScRiPt>
  • testing<input autofocus onfocus=CM9k(9090)>
  • testing< ScRiPt >CM9k(9743)</ScRiPt>
  • testing<img src=xyz OnErRor=CM9k(9177)>
  • testing<video><source onerror=\javascript:CM9k(9547)\>
  • testing<iframe src=\data:text/html;base64 PHNjcmlwdD5hbGVydCgnYWN1bmV0aXgteHNzLXRlc3QnKTwvc2NyaXB0Pgo=\ invalid=\9074\>
Scroll to top