WindowsServer 도메인이 변경되서, 새 도메인으로 컨텐츠 연결
페이지 정보
본문
도메인이 변경되서, 기존 계정에 안내 페이지를 보여주기 위한 팁입니다.
하위 어떤 폴더 또는 파일명으로 접근해도 아래 지정된 안내페이지(app_offline.htm)이 열립니다.
1. app_offline.htm
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>테스트</title>
</head>
<body>
</body>
</html>
2. Web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<security>
<requestFiltering />
</security>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Root Redirect">
<match url="^$" />
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="app_offline.htm" />
</files>
</defaultDocument>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
<httpErrors errorMode="Custom" existingResponse="Replace">
<clear />
<error statusCode="503" path="App_Offline.htm" responseMode="File" />
</httpErrors>
</system.webServer>
<system.diagnostics>
<switches>
<add name="ConnectionPoolPerformanceCounterDetail" value="4" />
</switches>
</system.diagnostics>
</configuration>
하위 어떤 폴더 또는 파일명으로 접근해도 아래 지정된 안내페이지(app_offline.htm)이 열립니다.
1. app_offline.htm
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>테스트</title>
</head>
<body>
</body>
</html>
2. Web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime enableVersionHeader="false" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<security>
<requestFiltering />
</security>
<directoryBrowse enabled="false" />
<rewrite>
<rules>
<rule name="Root Redirect">
<match url="^$" />
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value="app_offline.htm" />
</files>
</defaultDocument>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
</customHeaders>
</httpProtocol>
<httpErrors errorMode="Custom" existingResponse="Replace">
<clear />
<error statusCode="503" path="App_Offline.htm" responseMode="File" />
</httpErrors>
</system.webServer>
<system.diagnostics>
<switches>
<add name="ConnectionPoolPerformanceCounterDetail" value="4" />
</switches>
</system.diagnostics>
</configuration>
댓글목록
등록된 댓글이 없습니다.