P3P Header in Sun Web Server 6.1
I have added teh following line into my obj.conf file to provide a P3p header but it doesn't seam to work.
NameTrans fn="set-variable" insert-srvhdrs="P3P: policyref=\"http://xxxxx/w3c/p3p.xml\", CP=\"NOI DSP LAW ADM CUR DEV PSA PSD TAI OUR STP UNI COM NAV LOC OTC\""
Have I missed a step?
[309 byte] By [
mikebros] at [2007-11-26 11:45:31]

# 2
this is what the obj.conf file looks like. DO you see any problems with the order?
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="assign-name" from="/aXX(|/*)" name="aXX"
NameTrans fn="assign-name" from="/IXX(|/*)" name="yXX"
NameTrans fn="assign-name" from="/IiXX(|/*)" name="wXX"
NameTrans fn="assign-name" from="/pXX(|/*)" name="pXX"
NameTrans fn="assign-name" from="/*" name="dsapp"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/app/Sun/WebSvr61/ns-icons" name="es-internal"
NameTrans fn="document-root" root="$docroot"
NameTrans fn="set-variable" insert-srvhdrs="P3P: policyref=\"http://XXXX/w3c/p3p.xml\", CP=\"NOI DSP LAW ADM CUR DEV PSA PSD TAI OUR STP UNI COM NAV LOC OTC\""
PathCheck fn="unix-uri-clean"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
PathCheck fn="check-acl" acl="default"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Service fn="send-cgi" type="magnus-internal/cgi" nice="10"
Error fn="error-j2ee"
AddLog fn="flex-log" name="access"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi" user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="send-compressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object name="dXXX">
Service fn="service-passthrough" servers="http://XXX1:1234"
</Object>
<Object name="aXX">
Service fn="service-passthrough" servers="http://XXX1:80"
</Object>
<Object name="pXX">
Service fn="service-passthrough" servers="http://XXXX2:1235"
</Object>
<Object name="yXX">
Service fn="service-passthrough" servers="http://XXXX2:1237"
</Object>
<Object name="wXX">
Service fn="service-passthrough" servers="http://XXXX2:1237"
</Object>
# 3
I changed the order to the following and the P3P header is working.
Thanks for your help
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="assign-name" from="/aXX(|/*)" name="aXX"
NameTrans fn="set-variable" insert-srvhdrs="P3P: policyref=\"http://XXXX/w3c/p3p.xml\", CP=\"NOI DSP LAW ADM CUR DEV PSA PSD TAI OUR STP UNI COM NAV LOC OTC\""
NameTrans fn="assign-name" from="/IXX(|/*)" name="yXX"
NameTrans fn="assign-name" from="/IiXX(|/*)" name="wXX"
NameTrans fn="assign-name" from="/pXX(|/*)" name="pXX"
NameTrans fn="assign-name" from="/*" name="dsapp"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/app/Sun/WebSvr61/ns-icons" name="es-internal"
NameTrans fn="document-root" root="$docroot"
PathCheck fn="unix-uri-clean"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
PathCheck fn="check-acl" acl="default"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Service fn="send-cgi" type="magnus-internal/cgi" nice="10"
Error fn="error-j2ee"
AddLog fn="flex-log" name="access"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi" user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="send-compressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object name="dXXX">
Service fn="service-passthrough" servers="http://XXX1:1234"
</Object>
<Object name="aXX">
Service fn="service-passthrough" servers="http://XXX1:80"
</Object>
<Object name="pXX">
Service fn="service-passthrough" servers="http://XXXX2:1235"
</Object>
<Object name="yXX">
Service fn="service-passthrough" servers="http://XXXX2:1237"
</Object>
<Object name="wXX">
Service fn="service-passthrough" servers="http://XXXX2:1237"
</Object>