| java.lang.Object org.apache.jk.config.BaseJkConfig org.apache.jk.config.IISConfig
IISConfig | public class IISConfig extends BaseJkConfig (Code) | | Generates automatic IIS isapi_redirect configurations based on
the Tomcat server.xml settings and the war contexts
initialized during startup.
This config interceptor is enabled by inserting an IISConfig
element in the <ContextManager> tag body inside
the server.xml file like so:
< ContextManager ... >
...
<IISConfig options />
...
< /ContextManager >
where options can include any of the following attributes:
- configHome - default parent directory for the following paths.
If not set, this defaults to TOMCAT_HOME. Ignored
whenever any of the following paths is absolute.
- regConfig - path to use for writing IIS isapi_redirect registry
file. If not set, defaults to
"conf/auto/iis_redirect.reg".
- workersConfig - path to workers.properties file used by
isapi_redirect. If not set, defaults to
"conf/jk/workers.properties".
- uriConfig - path to use for writing IIS isapi_redirect uriworkermap
file. If not set, defaults to
"conf/auto/uriworkermap.properties".
- jkLog - path to log file to be used by isapi_redirect.
- jkDebug - Loglevel setting. May be debug, info, error, or emerg.
If not set, defaults to emerg.
- jkWorker The desired worker. Must be set to one of the workers
defined in the workers.properties file. "ajp12", "ajp13"
or "inprocess" are the workers found in the default
workers.properties file. If not specified, defaults
to "ajp13" if an Ajp13Interceptor is in use, otherwise
it defaults to "ajp12".
- forwardAll - If true, forward all requests to Tomcat. This helps
insure that all the behavior configured in the web.xml
file functions correctly. If false, let IIS serve
static resources assuming it has been configured
to do so. The default is true.
Warning: When false, some configuration in
the web.xml may not be duplicated in IIS.
Review the uriworkermap file to see what
configuration is actually being set in IIS.
- noRoot - If true, the root context is not mapped to
Tomcat. If false and forwardAll is true, all requests
to the root context are mapped to Tomcat. If false and
forwardAll is false, only JSP and servlets requests to
the root context are mapped to Tomcat. When false,
to correctly serve Tomcat's root context you must also
modify the Home Directory setting in IIS
to point to Tomcat's root context directory.
Otherwise some content, such as the root index.html,
will be served by IIS before isapi_redirect gets a chance
to claim the request and pass it to Tomcat.
The default is true.
author: Costin Manolache author: Larry Isaacs author: Gal Shachor author: Bill Barker |
ISAPI_LOG_LOCATION | final public static String ISAPI_LOG_LOCATION(Code) | | |
ISAPI_REG_FILE | final public static String ISAPI_REG_FILE(Code) | | |
URI_WORKERS_MAP_CONFIG | final public static String URI_WORKERS_MAP_CONFIG(Code) | | |
WORKERS_CONFIG | final public static String WORKERS_CONFIG(Code) | | |
IISConfig | public IISConfig()(Code) | | |
addMapping | protected boolean addMapping(String fullPath, PrintWriter uri_worker)(Code) | | Add a fulling specified IIS mapping.
|
generateContextMappings | protected void generateContextMappings(Context context, PrintWriter uri_worker)(Code) | | |
generateStupidMappings | protected void generateStupidMappings(Context context, PrintWriter uri_worker)(Code) | | Forward all requests for a context to tomcat.
The default.
|
initProperties | protected void initProperties()(Code) | | Initialize defaults for properties that are not set
explicitely
|
setRegConfig | public void setRegConfig(String path)(Code) | | set the path to the output file for the auto-generated
isapi_redirect registry file. If this path is relative
then getRegConfig() will resolve it absolutely against
the getConfigHome() path.
path String path to a file |
setUriConfig | public void setUriConfig(String path)(Code) | | set a path to the uriworkermap.properties file.
path String path to uriworkermap.properties file |
Methods inherited from org.apache.jk.config.BaseJkConfig | protected boolean addExtensionMapping(String ctxPath, String ext, PrintWriter pw)(Code)(Java Doc) protected boolean addMapping(String fullPath, PrintWriter pw)(Code)(Java Doc) public void execute(LifecycleEvent evt)(Code)(Java Doc) public void executeContext(Context context, PrintWriter mod_jk)(Code)(Java Doc) protected void executeEngine(Engine egn, PrintWriter mod_jk)(Code)(Java Doc) protected void executeHost(Host hst, PrintWriter mod_jk)(Code)(Java Doc) public void executeServer(Server svr, PrintWriter mod_jk)(Code)(Java Doc) protected void generateContextMappings(Context context, PrintWriter mod_jk)(Code)(Java Doc) protected boolean generateJkHead(PrintWriter mod_jk)(Code)(Java Doc) protected void generateJkTail(PrintWriter mod_jk)(Code)(Java Doc) protected void generateSSLConfig(PrintWriter mod_jk)(Code)(Java Doc) protected void generateStupidMappings(Context context, PrintWriter mod_jk)(Code)(Java Doc) protected void generateVhostHead(Host host, PrintWriter mod_jk)(Code)(Java Doc) protected void generateVhostTail(Host host, PrintWriter mod_jk)(Code)(Java Doc) protected String getAbsoluteDocBase(Context context)(Code)(Java Doc) public static File getConfigFile(File base, File configDir, String defaultF)(Code)(Java Doc) protected Host getHost(Container child)(Code)(Java Doc) protected PrintWriter getWriter() throws IOException(Code)(Java Doc) protected void initProperties()(Code)(Java Doc) public static boolean isAbsolute(String path)(Code)(Java Doc) public void lifecycleEvent(LifecycleEvent evt)(Code)(Java Doc) protected void log(String msg)(Code)(Java Doc) public static String patch(String path)(Code)(Java Doc) public void setAppend(boolean apnd)(Code)(Java Doc) public void setConfigHome(String dir)(Code)(Java Doc) public void setForwardAll(boolean b)(Code)(Java Doc) public void setJkDebug(String level)(Code)(Java Doc) public void setJkLog(String path)(Code)(Java Doc) public void setJkWorker(String worker)(Code)(Java Doc) public void setLegacy(boolean legacy)(Code)(Java Doc) public void setNoRoot(boolean b)(Code)(Java Doc) public void setWorkersConfig(String path)(Code)(Java Doc)
|
|
|