Results 1 to 3 of 3

Thread: Anyone using SugarCRM behind a reverse proxy?

  1. #1
    dhagberg is offline Junior Member
    Join Date
    Feb 2006
    Posts
    1

    Question Anyone using SugarCRM behind a reverse proxy?

    We currently have an instance of SugarCRM installed on an intranet (internal network) machine, but our roving users need/want to access it remotely.

    I have set up Apache 2.0 as a reverse proxy, providing access to the internal machine such that it's visible to the external world over a secure (https) URL.

    The problem is that, even with mod_proxy_html rewriting HTML urls, there are still several portions of SugarCRM that do not seem to work -- certain selections and other items. Is there some JavaScript magic going on that is outside of HTML links or form submissions that are normally handled by mod_proxy_html?

    Does anyone have a valid configuration of a reverse proxy providing access to an internal SugarCRM instance that is fully-functional? What additional steps did you have to take?

    -=- D. J.

    Basic outline of the relevant sections of my current Apache configuration (names/IPs changed to protect the innocent):

    Code:
    # 
    # Virtual Host for crm.answeron.com SSL
    #
    <VirtualHost 99.99.99.99:443>
      ServerName 99.99.99.99:443
    [. . .]
      <Proxy *>
        Order deny,allow
        Allow from all
      </Proxy>
    
      ProxyPass /sugarcrm/ http://10.20.0.31:6080/sugarcrm/
      ProxyPassReverse /sugarcrm/ http://10.20.0.31:6080/sugarcrm/
      ProxyPassReverse /sugarcrm/ http://sugarcrm-lan:6080/sugarcrm/
      ProxyPassReverse /sugarcrm/ http://sugarcrm-lan.mydomain.com:6080/sugarcrm/
      ProxyHTMLURLMap http://10.20.0.31:6080/sugarcrm /sugarcrm
      ProxyHTMLURLMap http://sugarcrm-lan:6080/sugarcrm /sugarcrm
      ProxyHTMLURLMap http://sugarcrm-lan.mydomain.com:6080/sugarcrm /sugarcrm
      ProxyHTMLLogVerbose On
    
      <Location /sugarcrm/>
        ProxyPassReverse /
        SetOutputFilter proxy-html
        ProxyHTMLURLMap /sugarcrm/ /sugarcrm/
        RequestHeader unset Accept-Encoding
      </Location>
    [. . .]
    </VirtualHost>

  2. #2
    bdes is offline Junior Member
    Join Date
    Mar 2006
    Posts
    1

    Default Re: Anyone using SugarCRM behind a reverse proxy?

    I migrate my web server behind a reverse proxy a few days ago.

    I have the same problem

    I fix it (I think it's fixed !)

    I only put in my reverse proxy apache

    <VirtualHost ....>

    ServerName ...
    ProxyPass ...
    ProxyPAssReverse ...

    </VirtualHost>

    AND

    I modify the site_url value in my config.php in the SugarCrm directory to put the value './'

    With theses values my SugarCrm seems to work completely.

    Do the same test and say us if it's OK for you.

    I apologize for my bad English.

  3. #3
    pct
    pct is offline Junior Member
    Join Date
    Jul 2006
    Posts
    1

    Default Re: Anyone using SugarCRM behind a reverse proxy?

    The fix works very well for my configuration behind a reverse proxy.
    The problem was obvious in the "schedule meeting" page for example (the rest seemed to work)

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •