bin/startup.sh
bin\startup.bat
Serve modules without publishing
application.getRealPath("/")
keytool -genkey -alias tomcat -keyalg RSA -keystore ~/.ssh/okdevtv.keystore
<Connector
protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="${user.home}/.ssh/okdevtv.keystore" keystorePass="okpassokpass"
clientAuth="false" sslProtocol="TLS"/>
curl https://localhost:8443 -k
conf/context.xml
<Context sessionCookiePath="/">
checker.jsp
in each webapp<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checker</title>
</head>
<body>
<b>context path</b> : <%= application.getContextPath() %><hr />
<b>sesseion id</b> : <%= session.getId() %><hr />
<b>cookie string</b> : <%= request.getHeader("cookie") %>
</body>
</html>