Sun Java System Web Server 7.0 管理員指南

修改 obj.conf

編輯 obj.conf 檔案,以使用之前各節所述的外掛程式 SAF,來配置 FastCGI 特有的請求。

修改後的 obj.conf 檔案範例如下所示:

#

# Copyright 2006 Sun Microsystems, Inc. 版權所有。

# 使用應遵守授權合約的條款。

#


# 您可以編輯此檔案,但如果使用管理 GUI 或 CLI,

# 註釋和格式變更可能會遺失。



<object name = "default">

		AuthTrans fn="match-browser" browser="*MSIE*" 
						ssl-unclean-shutdown="true"
		NameTrans fn="ntrans-Java EE" name="Java EE"
		NameTrans fn="pfx2dir" from="/mc-icons" 
						dir="/ws7/lib/icons" name="es-internal"
		NameTrans fn="assign-name" from="/fcgi/*" name="fcgi.config"

</object>

<Object name="fcgi.config">

		AuthTrans fn="auth-fastcgi" app-path="/fastcgi/apps/c/simpleAuth" 
				bind-path="localhost:2111"
		Service fn="responder-fastcgi" 
						app-path="/fastcgi_enabled_php_installation_dir/bin/php" 
				app-env="name1=abc"

</object>
...

請注意,針對不同的 URL 式樣定義不同的物件或將 SAF 對映至不同的 MIME 類型,便可以不同的方式呼叫 FastCGI SAF。

如需有關 obj.conf 配置及語法的更多資訊,請參閱「Administration Configuration File Reference Guide」。