<VirtualHost *:80> ServerAdmin linvsfen◎163.com DocumentRoot "d:/ Tomcat51/webapps/jsp-examples ServerName localhost ErrorLog logs/error_log CustomLog logs/access_log common </VirtualHost> |
# 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] |
<Connector port="8443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="true" sslProtocol="TLS" keystoreFile="conf\\server02.jks" keystorePass="123456" truststoreFile="conf\\server02.jks" truststorePass="123456"/> |
<user-data-constraint> <description> Constrain the user data transport for the whole application </description> <transport-guarantee> CONFIDENTIAL </transport-guarantee> </user-data-constraint> |
<auth-constraint> <!-- Anyone with one of the listed roles may access this area --> <role-name>tomcat</role-name> <role-name>role1</role-name> </auth-constraint> |
<url-pattern>/*</url-pattern> |