Announcement

Collapse
No announcement yet.

mod_proxy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mod_proxy

    Hi all,

    I have installed open-xchange on my internal network.
    To access open-xchange from the internet I use mod_proxy (from my dmz the connection is redirected to my internal network).

    I know how to redirect a url with mod_proxy, but I have no success with open-xchange.
    Can someone post the correct configuration for open-xchange ?

    Thanks in advance. Miche

  • #2
    These are the notes I made for myself to access OX via an Apache Reverse Proxy. The setup is running on a virtual Ubuntu 8.04 host.

    Apache Reverse-Proxy

    Necessary packages for the reverse proxy:

    Code:
    # apt-get install apache2 libapache2-mod-proxy-html
    # a2enmod ssl
    # a2enmod proxy
    # a2enmod proxy_html
    # a2enmod proxy_http
    # a2enmod rewrite
    # a2enmod headers
    # /etc/init.d/apache2 force-reload
    Debian and Ubuntu System are a little bit restircted in their default configuration. Proxying has to be enabed.

    Code:
    # nano -w /etc/apache2/mods-available/proxy.conf
    Change this ...
    Code:
            <Proxy *>
                    AddDefaultCharset off
                    Order deny,allow
                    Deny from all
                    #Allow from .example.com
            </Proxy>
    to that ...
    Code:
            <Proxy *>
                    AddDefaultCharset off
                    Order deny,allow
                    #Deny from all
                    #Allow from .example.com
                    Allow from all
            </Proxy>
    The configuration for OX is something like the following. In this example the internal URL is http://oxsrv/ox and the external URL is http://<proxy-server>/somewhere/ox.

    Code:
    # nano -w /etc/apache2/sites-available/ox
    Code:
    RewriteEngine On
    RedirectMatch ^/somewhere/ox /somewhere/ox/
    ProxyPass /somewhere/ox/ [url]http://oxsrv/ox/[/url]
    ProxyPassReverse /somewhere/ox/ [url]http://oxsrv/ox/[/url]
    
    RedirectMatch ^/ajax /ajax/
    ProxyPass /ajax/ [url]http://oxsrv/ajax/[/url]
    ProxyPassReverse /ajax/ [url]http://oxsrv/ajax/[/url]
    
    RedirectMatch ^/servlet /servlet/
    ProxyPass /servlet/ [url]http://oxsrv/servlet/[/url]
    ProxyPassReverse /servlet/ [url]http://oxsrv/servlet/[/url]
    
    RedirectMatch ^/infostore /infostore/
    ProxyPass /infostore/ [url]http://oxsrv/infostore/[/url]
    ProxyPassReverse /infostore/ [url]http://oxsrv/infostore/[/url]
    
    RedirectMatch ^/oxadmin /oxadmin/
    ProxyPass /oxadmin/ [url]http://oxsrv/oxadmin/[/url]
    ProxyPassReverse /oxadmin/ [url]http://oxsrv/oxadmin/[/url]
    Now activate the configuration:
    Code:
    # a2ensite ox
    # /etc/init.d/apache2 force-reload

    Normal usage of OX works for me but I cannot access the Infostore via webdav yet.


    Hope I could help.
    Carsten
    Last edited by Guest; 05-11-2008, 12:22 PM.

    Comment


    • #3
      Hi,

      did you try to add /servlet/webdav.infostore/ as proxypass directive?

      Comment


      • #4
        No, I did not. Normally it should be enough to have /servlet/ in the ProxyPass because everything below should be included too. The Infostore feature is not that important for me right now since I use Alfresco for document management. I can access the Alfresco system running at home from work via webdav through the same proxy server that does not work with OX infostore (I have no direct internet access at work - everything has to go through a webproxy).

        The problem with Infostore WebDAV access via ReverseProxy seems to have something to do with authentication. I think the ReverseProxy does not hand over the authentication process to the OX server in the right way. When searching the web about the error messages I found in my logs I came across many subversion users who reported similar problems when using a reverse proxy. There seems to be a solution on http://silmor.de/49 but I have not tried yet.

        When I start to dig deeper into the problem I will post here. At the moment I have some more important things to get to work (like sending mails via remote relayhost over SSL, but that is just a little tweaking of the postfix conf).

        Comment


        • #5
          It works now! I always tried the wrong URL http://externalURL/infostore . When I use http://externalURL/servlet/webdav.infostore it works. My fault.

          P.S.; My Client is a Windows XP Pro 32Bit Box.
          Last edited by Guest; 05-13-2008, 12:45 PM.

          Comment

          Working...
          X