復制代碼 代碼如下:
 
<php? 
$domain = $_GET['q']; 
preg_match("| 
<divlyTableInfoWrap/"">(.+?)</div> 
|is", @file_get_contents('http://www.xinnet.cn/Modules/agent/serv/pages/domain_whois.jsp?domainNameWhois='.$domain.'&noCode=noCode'), $whois); 
echo $whois[1]; 
?> 
復制代碼 代碼如下:
 
location ~* /whois/(.+)$ { 
proxy_pass :8080/whois/index.php?q=baidu.com 
#將查詢傳遞給內網的apache處理 
} 
新聞熱點
疑難解答