代理伺服器公用程式 urldb 用於管理快取中的 URL 清單。您可以使用此公用程式來列出已快取的 URL。您也可以從快取資料庫選取性地移除已快取的物件,或將它設定為過期。
urldb 指令可根據 -o 選項分為三個群組:
網域
網站
URL
若要列出網域,請在指令行中鍵入以下指令:
urldb -o matching_domains -e reg-exp -d conf-dir
例如︰
urldb -o matching_domains -e “.*phoenix.*” -d server-root/proxy-serverid/config
其中
matching_domains 可列出符合常規表示式的網域
reg-exp 是所使用的常規表示式
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要列出網域中所有符合的網站,請在指令行中鍵入以下指令:
urldb -o matching_sites_in_domain -e reg-exp -m domain_name -d conf-dir
例如︰
urldb -o matching_sites_in_domain -e “.*atlas” -m phoenix.com -d server-root/proxy-serverid/config
其中
matching_sites_in_domain 可列出網域中所有符合常規表示式的網站
reg-exp 是所使用的常規表示式
domain_name 是網域的名稱
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要列出所有符合的網站,請在指令行中間鍵入以下指令:
urldb -o all_matching_sites -e reg-exp -d conf-dir
例如︰
urldb -o all_matching_sites -e “.*atlas.*” -d server-root/proxy-serverid/config
其中
all_matching_sites 可列出所有符合常規表示式的網站
reg-exp 是所使用的常規表示式
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要列出網站中符合的 URL,請在指令行中鍵入以下指令:
urldb -o matching_urls_from_site -e reg-exp -s site_name -d conf-dir
例如︰
urldb -o matching_urls_from_site -e “http://.*atlas.*” -s atlas.phoenix.com -d server-root/proxy-serverid/config
其中
matching_urls_from_site 可列出網站中所有符合常規表示式的 URL
reg-exp 是所使用的常規表示式
site_name 是網站的名稱
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要將網站中符合的 URL 設定為過期或將它移除,請在指令行中鍵入以下指令:
urldb -o matching_urls_from_site -e reg-exp -s site_name -x e -d conf-dir urldb -o matching_urls_from_site -e reg-exp -s site_name -x r -d conf-dir
例如︰
urldb -o matching_urls_from_site -e “http://.*atlas.*” -s atlas.phoenix.com -x e -d server-root/proxy-serverid/config
其中
matching_urls_from_site 可列出網站中所有符合常規表示式的 URL
reg-exp 是所使用的常規表示式
site_name 是網站的名稱
-x e 選項可將快取資料庫中符合的 URL 設定為過期。此選項無法與網域和網站模式一起使用
-x r 選項可從快取資料庫移除符合的 URL
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要列出所有符合的 URL,請在指令行中鍵入以下指令:
urldb -o all_matching_urls -e reg-exp -d conf-dir
例如︰
urldb -o all_matching_urls -e “.*cgi-bin.*” -d server-root/proxy-serverid/config
其中
all_matching_urls 可列出所有符合常規表示式的 URL
reg-exp 是所使用的常規表示式
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要將所有符合的 URL 設定為過期,或要移除所有符合的 URL,請在指令行中鍵入以下指令:
urldb -o all_matching_urls -e reg-exp -x e -d conf-dir urldb -o all_matching_urls -e reg-exp -x r -d conf-dir
例如︰
urldb -o all_matching_urls -e “.*cgi-bin.*” -x e -d server-root/proxy-serverid/config
其中
all_matching_urls 可列出所有符合常規表示式的 URL
reg-exp 是所使用的常規表示式
-x e 選項可將快取資料庫中所有符合的 URL 設定為過期
-x r 選項可從快取資料庫移除符合的 URL
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。
若要將 URL 清單設定為過期或移除 URL 清單,請在指令行中鍵入以下指令:
urldb -l url-list -x e -e reg-exp -d conf-dir urldb -l url-list -x r -e reg-exp -d conf-dir
例如︰
urldb -l url.lst -x e -e “.*cgi-bin.*” -d server-root/proxy-serverid/config
其中
url-list 是需要設定為過期的 URL 清單。此選項可用於提供 URL 清單。
-x e 選項可將快取資料庫中符合的 URL 設定為過期。
-x r 選項可從快取資料庫移除符合的 URL。
reg-exp 是所使用的常規表示式
conf-dir 是代理伺服器實例的配置目錄,它位於 server-root /proxy-serverid/config 目錄中。