Tomcat 다중 웹 사이트 접속 처리

도메인 설정 (CNAME 레코드)

silentsoft.kr  CNAME 레코드 ▶ silentsoft.iptime.org

silentsoft.org CNAME 레코드 ▶ silentsoft.iptime.org

Whois 설정 예시 참조 > https://blog.silentsoft.org/archives/28

Tomcat 서버 설정

{tomcat}\conf\server.xml ```

<Server …> … ... <Engine name="Catalina" ...> ... silentsoft.kr <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="silentsoft.kr_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> silentsoft.org <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="silentsoft.org_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Engine> </Server>

> {tomcat}\webapps directory 구조

webapps +—silentsoft.kr -–ROOT index.html +—silentsoft.org -–ROOT index.html ```


© 2017. All rights reserved.

Powered by Hydejack v7.5.1