Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Location
    Switzerland
    Posts
    18

    Default Multi-Domain (web access)

    Hi

    Is it possible to run a single OX hosting edition instance under multiple IPs and/or domain names?
    For example https://ox1.example.com and https://ox2.example.com.

    I just did a quick test with an Apache ServerAlias, and the web frontend seems to work.
    However I'm curious if this is officially supported and if there are any special configuration options to be set. Especially how to deal with the object-link-hostname and extras-link configuration parameter of the oxinstaller command.

    Many thanks!
    Christian Affolter
    Last edited by chrigu; 08-11-2010 at 11:25 AM.

  2. #2
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Hi Christian,

    yes this is specifically supported and often used within high-availability or high-load environments to distribute the webserver load. Since the webserver only forwards requests to the server configured at proxy_ajp, there should be no problems. However, invitation links might have the "wrong" URL - but since both webservers point to the same OX machine, this should not be a big issue. Typically, multiple webservers are used for one domain by using DNS balancing (multiple IP addresses per domain). Using two domains for one machines is rather special - may i ask for the use case here?

    Greetings

  3. #3
    Join Date
    Aug 2010
    Location
    Switzerland
    Posts
    18

    Default

    Hi Martin

    thank you for your prompt answer.

    Quote Originally Posted by Martin Braun View Post
    Using two domains for one machines is rather special - may i ask for the use case here?
    A few of our reseller customers wishes to access OX under their own domain. So it's more about domain white labeling than load distribution.

    Regards
    Christian
    Last edited by chrigu; 08-11-2010 at 01:45 PM.

  4. #4
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Ah okay. We already had this requirement in several customer scenarios. You might contact your OX representative to get in touch with the professional services people. They should have configuration, experience and settings for this kind of setup.

    Greetings

  5. #5

    Default

    Hello Christian,

    if you are familiar with Java programming and OSGi you can write your own HostnameService. The corresponding interface is com.openexchange.groupware.notify.hostname.Hostnam eService. This interface has a method getHostname(int, int) which gets the user id and the context id as parameter. Based on them you can return a specific hostname.

    So a simplified version would look like:

    Code:
    public final class SampleHostnameService implements HostnameService {
    
    	public String getHostname(int userId, int contextId) {
    		if (contextId == 1) {
    			return "ox1.example.com";
    		} else {
    			return "ox2.example.com";
    		}
    	}
    }
    This class must be made available as implementation for the HostnameService with the OSGi specific mechanisms.

    Regards,

    Dennis

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
  •