WAS2010. 9. 27. 13:11

- HTTP로 접근한 사용자의 URL을 HTTPS 로 변경하기 위한 설정 방법
* magnus.conf 파일의 proxy 연결 설정과 obj.conf 파일의 설정정보의 순서에 영향이 있음.

--------------------------------------- obj.conf -------------------------------------------

# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.

# Use only forward slashes in pathnames--backslashes can cause
# problems. See the documentation for more information.

<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
<Client security="false" internal="false">
NameTrans fn="redirect" from="/" url-prefix="
https://www.test.com/"
</Client>

NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Sun/WebServer6.1/ns-icons" name="es-internal"
NameTrans fn="document-root" root="$docroot"
PathCheck fn="nt-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
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="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicHost="[IP Address]" WebLogicPort="7001"
Service method="TRACE" fn="service-trace"
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"
</Object>

<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>

<Object name="weblogic" ppath="*/*">
Service fn="wl_proxy" WebLogicHost="[IP Address]" WebLogicPort="7001"
</Object>

<Object name="send-compressed">
PathCheck fn="find-compressed"
</Object>

<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>



--------------------------------------- magnus.conf ---------------------------------------


# The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
# They will not be supported in future releases of the Web Server.
NetsiteRoot C:/Sun/WebServer6.1
ServerName DEVSANGJIN
ServerID https-ASINTRA
RqThrottle 128
DNS off
Security on
ExtraPath C:/Sun/WebServer6.1/bin/https/bin

Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="C:/Sun/WebServer6.1/plugins/lib/proxy36.dll"
Init fn="wl_init"

Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn="load-modules" shlib="C:/Sun/WebServer6.1/bin/https/bin/j2eeplugin.dll" shlib_flags="(global|now)"

Posted by Tiwaz