본문 바로가기
Web Programing!/JAVA / JSP

레진3.1 에러페이지 특정페이지 이동

by 어설픈봉봉이 2013. 7. 29.
반응형
SMALL

 

 

 

 

 

윈도우 3.1 버젼 

 

<host id="****.***.****" root-directory=".">
<access-log>
        <path>/logs/access_info.log</path>
        <format>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %D</format>
            <exclude>\.gif$</exclude>
            <exclude>\.jpg$</exclude>
            <exclude>\.png$</exclude>
            <exclude>\.js$</exclude>
            <exclude>\.css$</exclude>
            <exclude>\.html$</exclude>
            <exclude>\.ico$</exclude>
        <rollover-period>1D</rollover-period>
      </access-log>
      <!--
         - configures an explicit root web-app matching the
         - webapp's ROOT
        -->
      <web-app id="/" root-directory="C:/k2web/jwizard"/>

      <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
        <!--
           - Administration application /resin-admin
          -->
        <prologue>
          <resin:set var="resin_admin_external" value="false"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
 <error-page error-code="500" location="/error.html"/>
      </web-app>
    </host>

 

 

 

리눅스 3.1

 

<host id="***.***.***" root-directory=".">
      <access-log>
        <path>${resin.home}/logs/access_main.log</path>
        <format>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %D</format>
            <exclude>\.gif$</exclude>
            <exclude>\.jpg$</exclude>
            <exclude>\.png$</exclude>
            <exclude>\.js$</exclude>
            <exclude>\.css$</exclude>
            <exclude>\.html$</exclude>
            <exclude>\.ico$</exclude>
        <rollover-period>1D</rollover-period>
      </access-log>

      <stderr-log path="stdout:"  timestamp="[%Y-%m-%d %H:%M:%S.%s] "/>
      <stdout-log path="logs/web_stdout.log" rollover-period='1D'/>

      <web-app id="/">
        <root-directory>/webapp/main</root-directory>
 <error-page error-code="500" location="/error.html"/>
      </web-app>
    </host>

 

 

주의사항 : 에러페이지가 1kb 이하일때는 윈도우 자체 에러 페이지로 이동하는 경우가 많다

              1kb 이상으로 에러페이지 작성하자

 

 

 

반응형