Download View this document as PDF
Transcript
Stage 3: Implement 1. Installing Apache Reverse Proxy Download and install the Apache Reverse Proxy. 2. Configuring the Reverse Proxy with httpd.conf Edit the httpd.conf file to load modules required prepare the Reverse Proxy for Unwired Platform use. 3. Mapping Proxy Ports to SMP Ports For reverse proxy, you must map proxy ports to Sybase Unwired Platform ports. Installing Apache Reverse Proxy Download and install the Apache Reverse Proxy. 1. Download Apache 2.2 from a reliable source. 2. Install the proxy according to package instructions. Configuring the Reverse Proxy with httpd.conf Edit the httpd.conf file to load modules required prepare the Reverse Proxy for Unwired Platform use. For information about running a reverse proxy in Apache, see http://www.apachetutor.org/ admin/reverseproxies. For information about SSL and proxy modules, see http:// httpd.apache.org/docs/2.2/mod/mod_ssl.html and http://httpd.apache.org/docs/2.2/mod/ mod_proxy.html. 1. In a text editor, open Apache2.2\conf\httpd.conf . 2. Uncomment these lines to load headers, and required SSL and proxy modules. LoadModule LoadModule LoadModule LoadModule LoadModule headers_module modules/mod_headers.so ssl_module modules/mod_ssl.so proxy_module modules/mod_proxy.so proxy_connect_module modules/mod_proxy_connect.so proxy_http_module modules/mod_proxy_http.so The three proxy_* modules are required by three proxy modes: HTTP, 1-way HTTPS, and 2-way HTTPS. The ssl_module is required by both HTTPS proxy modes. The headers_module is required by 2-way HTTPS proxy mode. 3. Add these lines to enable port 8080 as an HTTP proxy. ############################## Listen 8080 <VirtualHost *:8080> ServerName proxy-server ErrorLog "C:/Apache2.2/logs/error.log" TransferLog "C:/Apache2.2/logs/access.log" <Location/> ProxyPass http://sup-server:8000/ ProxyPassReverse http://sup-server:8000/ </Location> 68 Sybase Unwired Platform