BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 12-06-2013, 06:02 AM   #1 (permalink)
New Member
Join Date: Dec 2013
Model: 8200
Carrier: T-mobile
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default apache reverse proxy to bes server

Please Login to Remove!


I hope that someone here can assist me with this problem because I am currently trying to fix this problem for 3 weeks now and canít seem to get it working. tried the suggestion of many many forums and blogs but can't seem find solution for me. Well letís start with explaining my situation.

    -1 Public IP
    -Host Windows Server 2008 R2 AD/DNS/Hyper-V (server0)
     + VM Windows Server 2008 R2 Exchange 2010/IIS (server1)
     + VM Ubuntu server 13.11 Apache 2.4.6 with virtual hosts (server2)
     + VM Windows Server 2008 R2 Blackberry Enterprise Server running on a Jboss webserver (server3)
    -All port 80,443 requests points  Ubuntu  server 13.11 (server2)
Within Apache 2.4.6 I have virtualhost where the setup are as followed

    SomeWebsite:80 (internet <---> server2)
    SomeOtherWebsite:80 (internet <---> server2) (internet <---> server2 reverse proxy:443 +CERT <--->  443+CERT server1) (internet <---> server2 reverse proxy:443 +CERT <--->  443+CERT server3)
The problem:

For testing purpose I am configuring a blackberry enterprise server(bes) on server3. Itís a clean installation with only the needed applications to run a bes. Because I only have 1 public ip I am trying to reverse proxy this webservice like i manged to configure for server1. The bes webservice is configured to accept connections on port 443. So my first web.conf setup was similar to the setup I used for server1 but I noticed that the webpage was displayed but I couldnít interact with the page because it is a java application. So digging deeper into this i found that the webpage that bes provided me to use isnít the real application but more like a iframe/redirect page.

    BES Console address:
    Real address:
Unfortunately after finding this and editing my web.conf to proxypass Ėreverse to this real address I encountered a other problem. The bes webconsole works with session idís and parameters

    Example:;jsessionid=2C10DDA521DB8408479AAD8F34255C7F?    component=login.goToChangeLanguagePageLink&consoleSId=&page=Login&service=direct&session=T
Current httpd.conf for server3:
    <VirtualHost *:80>
    DocumentRoot /var/www/
    <Directory "/var/www/">
    allow from all
    Options +Indexes

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/?(.*) https://$1 [R,L]

    ProxyPreserveHost On
    ProxyVia Full
    RequestHeader edit Transfer-Encoding Chunked chunked early
    RequestHeader unset Accept-Encoding
    ProxyRequests Off
    TimeOut 1800

    SSLEngine On
    SSLProxyEngine On
    SSLProtocol -all +SSLv3 +TLSv1
    SSLCertificateFile /var/www/
    SSLCertificateKeyFile /var/www/

    <Location /webconsole/login>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/app>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/assets>

    <Location /webconsole/com>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/Loader>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/META-INF>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/reset>
    ProxyPass https: //
    ProxyPassReverse https: //

    <Location /webconsole/WEB-INF>

    ErrorLog /var/log/apache2/bes_server3_errorlog
    CustomLog /var/log/apache2/bes_server3_com common

The server i am working on is used for testing the BES before we buy the software, servers, etc. i am not able to connect the bes server on a other public IP. its for me very important that the reverse proxy works. i think that i am not the only one using this kind of setup because of the security improvement when your not exposing your real server to the outside.

I hope with posting my own situation I have more chance to find a answer/suggestion that will work for me.
Old 12-06-2013, 07:28 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2006
Model: 9700
Carrier: t-mobile Germany
Posts: 1,369
Post Thanks: 11
Thanked 72 Times in 69 Posts
Default Re: apache reverse proxy to bes server

I have some experience regarding revers proxying with apache. From what I learned there it is not easy to do this, and if the server behind the reverse proxy hehaves not 100% compliant it might even be impossible.

Wouldnt it be easier to access the management console using a VPN ? Either your Router could have a built in VPN server or you could use the Windows built in VPN.

I also do not recommend to expose the webconsole (regardles if there is a reverse proxy in front of it or not) to the general public.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: apache reverse proxy to bes server
Thread Thread Starter Forum Replies Last Post
BEs 5.0.2 inplace upgrade of sql express to sql server 2005 elbutre BES Admin Corner 5 10-27-2010 05:59 AM
Knowledge Sharing - Troubleshooting mail server's failover in a Domino cluster noname BES Admin Corner 0 05-06-2010 08:20 AM
NeverFail vs. BES 5.0 dmbascfan BES Admin Corner 27 11-09-2009 08:44 AM
Exchange 2007, BES, Server 2008 and Server 2003 R2 wangel88 BES Admin Corner 9 04-07-2009 05:12 PM
BES 4.01 migration to new server, do these steps look okay? mcast12 BES Admin Corner 0 08-22-2006 12:22 PM

Copyright © 2004-2014
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.