The Redirector has been deprecated. In its place, use the Relay Server. See Synchronizing through a web server with the relay server.
The servlet Redirector is provided for web servers that support the Java servlet specification version 2.3 and later. The following procedure is an example of how to set up the servlet Redirector for Tomcat version 5.5.9 and Apache 2.0.55.
For information about version support, see SQL Anywhere Supported Platforms and Engineering Status.
There is also a native Redirector for Apache web servers. For more information, see Apache Redirector (deprecated).
This section describes how to install the servlet version of the Redirector to work on an Apache web server in conjunction with the Tomcat servlet container.
Installation requires the following steps:
To configure the servlet Redirector for Apache Tomcat
Complete the steps in Configuring Redirector properties (for Redirectors that don't support server groups).
Install the servlet version of the Redirector in Tomcat.
Configure the Apache web server to run as a proxy.
In the following procedure, %CATALINA_HOME% is the root directory of your Tomcat installation.
To install the servlet Redirector in Tomcat
Install Tomcat as a standalone server.
Optionally, set the required Tomcat HTTP port.
Tomcat binds to port 8080 by default. If there is a conflict, perhaps because another web server is using this port,
Install the servlet Redirector as a web application.
Tomcat expands the war file and creates the directory iaredirect for the Redirector web application.
Change the entry redirector.config to read
drive:/path/redirector.config. Even on Windows operating systems, use a forward slash as a path separator, as in d:/redirector.config.
Once the changes have taken effect, you no longer need the war file in the deployed location.
where tc-host is the machine and tc-port the port on which Tomcat is listening.
In the following procedure, %APACHE_HOME% is the root directory of your Apache installation.
To configure the Apache web server as a proxy
Install the Apache web server.
Optionally, change the Apache web server port:
Configure Apache to run as a proxy:
In %APACHE_HOME%/conf/httpd.conf, add the following directives:
LoadModule proxy_module module-path/mod_proxy.so LoadModule proxy_connect_module module-path/mod_proxy_connect.so LoadModule proxy_http_module module-path/mod_proxy_http.so
where module-path is the location of the module. For example, the path may be modules/mod_proxy.so (the default).
Configure Apache to forward Redirector URLs to Tomcat.
In %APACHE_HOME%/conf/httpd.conf, add the following directive so that Apache forwards URLs of the form http://localhost/iaredirect/* to the Tomcat 5 Connector listening on port 8080:
ProxyPass /iaredirect http://localhost:8080/iaredirect
The port number must match the port number used for Tomcat. If Tomcat and Apache are not running on the same computer, provide the computer name where Tomcat is running instead of localhost.
|Send feedback about this page via email or DocCommentXchange||Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0|