Hostloc 上看到网友分享的
原贴地址:https://hostloc.com/thread-871586-1-1.html
效果演示:whois.gd
源码请在上面的原贴地址进行下载
一、whois部署教程
域名 Whois 查询服务器数据说明:
爬虫数据主要来源:https://www.iana.org/domains/root/db
大部分主流后缀和常见国别时可以查询的,但是不包括大部分二级国别。
未爬到的Whois服务器,填充为whois.iana.org,所以需要行维护。
二、伪静态设置
NGINX
#根目录: 地点 / { if (-f $request_filename) { 休息; } 最后重写 ^/(.*)$ /index.php?domain=$1; } #多级目录,请修改index.php同级目录的对应位置: location /多级目录/ { if (-f $request_filename) { 休息; } rewrite /多级目录/(.*)$ /多级目录/index.php?domain=$1 last; }
阿帕奇
#根目录: 重写引擎开启 RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?domain=$1 [L] #多级目录,请在程序index.php同级目录内新建.htaccess文件,并修改对应位置: 重写引擎开启 RewriteBase /多级目录/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?domain=$1 [L]
- THE END -
最后修改:2022年8月9日
非特殊说明,本博所有文章均为博主原创。
共有 0 条评论