Sun Java System Portal Server Secure Remote Access 7.2 管理指南

Procedure建立要剖析的 URI 對映清單

若已啟用 MIME 推測核取方塊,且伺服器沒有傳送 MIME 類型,可使用這個清單方塊以對映剖析器至 URI。

由分號分隔多個 URI。

例如 HTML=*.html; *.htm;*Servlet。這表示 HTML Rewriter 會用於重新寫入任何含有 html、htm,或 Servlet 副檔名的網頁內容。

    鍵入下列指令,並按下 Enter 鍵以建立要剖析的 URI 對映清單。

    • 設定要剖析的 URI 對映清單:

      PS_INSTALL_DIR/bin/psadmin set-attribute -u amadmin -f PASSWORD_FILE -m gateway --gateway-profile PROFILE_NAME -a MIMEMap

    • 新增至現有的清單:

      PS_INSTALL_DIR /bin/psadmin set-attribute -u amadmin -f PASSWORD_FILE -m gateway --gateway-profile PROFILE_NAME -a MIMEMap -A LIST

    • 從現有的清單移除:

      PS_INSTALL_DIR /bin/psadmin set-attribute -u amadmin -f PASSWORD_FILE -m gateway --gateway-profile PROFILE_NAME -a MIMEMap -E LIST

    • 取得現有的清單:

      PS_INSTALL_DIR /bin/psadmin get-attribute -u amadmin -f PASSWORD_FILE -m gateway --gateway-profile PROFILE_NAME-a MIMEMap

亦請參閱

「Sun Java System Portal Server 7.2 Command-Line Reference」中的「psadmin set-attribute」