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

cPanel/WHM 更改Nameserver IPs步驟

Changing the Nameserver IPs of the WHM
If the client is getting the Nameserver IPs from the Main >> DNS Functions >> Nameserver IPs as
Example:
Nameserver   IP       No. Zones
ns1.localhost.com   64.99.64.32   80
ns2.localhost.com   64.99.64.32   80

>> From WHM to change them you can it from
Main >> Server Configuration >> Basic cPanel & WHM Setup >> Nameservers

>> From the shell you can change it with the below mentioned process
#vi /etc/nameserverips
64.99.64.32=ns1.localhost.com
64.99.64.32=ns2.localhost.com
change it to the appripriate IP address and Local host.
:wq!
>> Then access the file /var/cpanel/nameserverips.yaml
#vi /var/cpanel/nameserverips.yaml
Replace the appropriate nameservers and the IP address.
>> After that restart the service
#service named restart OR #/etc/init.d/named restart
#service cpanel restart OR #/etc/init.d/cpanel restart

Check for the changes in the Nameserver IPs of the WHM.
Thats it !!! Done.

相关:

  • 2013
  • whm Nameservers
  • 525742937
  • SIGC
  • WHMCS 终身授权到期后是不是不能升级

cPanel WHM无法登陆 SSH被锁定的解决方式

因为默认开启了 Brute Force Protection
防护功能开启后,如果有多次登录错误 会出现SSH无法登陆

在保证密码正确的情况下
等待N分钟也会自动解封

如果紧急需要处理的话

可以使用KVM等代理登录终端操作

直接使用这个脚本把IP黑名单的数据内容全部删除
就可以登录了

也可以删除单条 使用where id = x 或者ip = x 就可以了

相关:

  • cpanel whm
  • WHMCS用QQ登陆
  • whm 登录
  • whm ssh
  • WHM
  • SSH锁住了
  • rowsArchives|
  • login wvc
  • cPanelWHM
  • whm登陆失效
Scroll to top