Chapter G: Installing and Configuring Reverse Proxy Servers for ShoreTel Communicator for iPhone Planning
ShoreTel 11.1 295
G.2 Example Reverse Proxy Configuration for
Apache 2.2
The following script example illustrates how to configure the reverse proxy on port 5500
for connection to the HQ server at 10.0.0.1.
Step 1 Modify httpd.conf to specify proxy port to be used for HTTP+SSL:
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
Listen 5500
Step 2 Verify in httpd.conf that the following modules are enabled (uncommented):
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule ssl_module modules/mod_ssl.so
Step 3 Edit conf\extra\ httpd-vhosts.conf:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:5500
<VirtualHost *:5500>
# necessary for rewriting
RewriteEngine on
# uncomment the logging for problem trace only
# RewriteLog "logs/ciproxy.localhost-rewrite.log"
# RewriteLogLevel 3
# NOTE the rewrite rules have a proxy redirect
RewriteRule ^/theme/(.+)$ /director2/theme/$1 [P]
RewriteRule ^/yui_2.7.0/(.+)$ /director2/yui_2.7.0/$1 [P]
RewriteRule ^/js/(.+)$ /director2/js/$1 [P]
ProxyPass /authenticate/ http://10.0.0.1/
ProxyPassReverse /authenticate/ http://10.0.0.1/
ProxyPass /cas/ http://10.0.0.1:5447/
ProxyPassReverse /cas/ http://10.0.0.1:5447/
ProxyPass /director2/ http://10.0.0.1:5449/
ProxyPassReverse /director2/ http://10.0.0.1:5449/
# These are Optional
ErrorLog "logs/ciproxy.localhost-error.log"
CustomLog "logs/ciproxy.localhost-access.log" combined
# SSL Engine Switch:
Terms of Use | Privacy Policy | DMCA Policy
2006-2022 Rsmanuals.com