# Usually commented out on production environments [logger.apache2] file=”D:/Apache2/logs/error.log” level=ERROR # Provide the basic config needed [config] file=D:/Apache2/conf/workers2.properties debug=1 # Provide the location of shm file on the Apache web server [shm] file=D:/Apache2/conf/jk2.shm size=1000000
[channel.socket:localhost:8009] port=8009 host=localhost #define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] [uri:/*.jsp]
**编写一个jsp文件(sessiontest.jsp),放在d:\Tomcat51\webapps\jsp-examples 下;
重新启动以后,启动apache和tomcat,访问http://localhost/jsp-examples/sessiontest.jsp可以访问。
二.Tomcat配置上ssl步骤:
1. 生成服务器证书server02.jks和客户端证书dwp.p12
2、把server02.jks放到conf目录下,
打开d:\ tomcat51\conf\server.xml 文件, 然后修改server.xml文件,将注释掉的内容的注释去掉和增加证书存放的位置:如下: <Connector port="8443" maxHttpHeaderSize="8192" &n 上一页 [1] [2] [3] [4] 下一页
|