기술지원 문의

[답변]iplanet 에서 에러페이지 설정문의
관리자 / 2011-06-29 14:14

안녕하세요

날씨가 많이 덥네요.

 

 

아래와 같이 에러페이지를 세팅하시면 됩니다.

해당 인스턴스의 obj.conf를 수정하시면 됩니다.

 

[root@www config]# pwd

/home/jyyoo/sun/sun6.1/https-test/config

[root@www config]# ls -lrt

합계 108

-rw-------  1 jyyoo jyyoo  100  1월 20 17:52 server.xml.clfilter

-rw-------  1 jyyoo jyyoo 3521  1월 20 17:52 server.xml

-rw-------  1 jyyoo jyyoo 2149  1월 20 17:52 server.policy

-rw-------  1 jyyoo jyyoo  100  1월 20 17:52 obj.conf.clfilter

-rw-------  1 jyyoo jyyoo  220  1월 20 17:52 nsfc.conf

-rw-------  1 jyyoo jyyoo 9215  1월 20 17:52 mime.types

-rw-------  1 jyyoo jyyoo  103  1월 20 17:52 magnus.conf.clfilter

-rw-------  1 jyyoo jyyoo  668  1월 20 17:52 magnus.conf

-rw-------  1 jyyoo jyyoo  470  1월 20 17:52 login.conf

-rw-------  1 jyyoo jyyoo  163  1월 20 17:52 keyfile

-rw-------  1 jyyoo jyyoo 7163  1월 20 17:52 default-web.xml

-rw-------  1 jyyoo jyyoo 1682  6월 22 08:59 obj.conf

[root@www config]# vi obj.conf

 

<Object name="default">

AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"

NameTrans fn="pfx2dir" from="/mc-icons" dir="/home/jyyoo/sun/sun6.1/ns-icons" name="es-internal"

NameTrans fn="document-root" root="$docroot"

PathCheck fn="unix-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="TRACE" fn="service-trace"

Error fn="send-error" reason="Unauthorized" path="/home/jyyoo/sun/sun6.1/docs/error_page.html"

Error fn="send-error" reason="Forbidden" path="/home/jyyoo/sun/sun6.1/docs/error_page.html"

Error fn="send-error" reason="Not Found" path="/home/jyyoo/sun/sun6.1/docs/error_page.html"

Error fn="send-error" reason="Server Error" path="/home/jyyoo/sun/sun6.1/docs/error_page.html"

AddLog fn="flex-log" name="access"

</Object>

 

이때 파일경로에 에러페이지 소스가 있어야합니다.

또한 에러페이지 소스 크기가 4kbyte 이상되어야 정상적으로 페이지가 표시되며 그 이하일 경우에는 익스플로러에서 제공하는 페이지가 표시될 수 있습니다.

 

해당 설정을 하신 후 해당 인스턴스를 재구동 해 주셔야 적용됩니다.

 

[root@www https-test]# ./stop

server has been shutdown

 

[root@www https-test]# ./start

Sun ONE Web Server 6.1SP9 B01/11/2008 22:22

info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_13] from [Sun Microsystems Inc.]

info: WEB0100: Loading web module in virtual server [https-test] at [/search]

info: HTTP3072: [LS ls1] http://opendev:9080 ready to accept requests

startup: server started successfully

[root@www https-test]# 

 

늘 행복하세요^^