Results 1 to 2 of 2

Thread: Virtual Hosting Websites alongside Zimbra

  1. #1
    Join Date
    Feb 2009
    Posts
    76
    Rep Power
    6

    Angry Virtual Hosting Websites alongside Zimbra

    I'm setting up a Zimbra server with DRBD for a high availability cluster under CentOS. I seem to have gotten the Zimbra install working with cluster in what I can only assume will work at this point.

    My next problem is that I have to host a number of websites alongside Zimbra. 3 to start with to be exact.

    I was attempting to follow this guide:
    ZimbraApache - Zimbra :: Wiki

    And I got to the section:

    Code:
    Sharing both HTTP and HTTPS between both Zimbra and Apache using Different Domain Names
    Which I believe is what I want to do as I want the HTTPS side accessible.

    The problem that I run in to is that the definition of the Zimbra virtualhost doesn't appear to be forwarding to the HTTP side, but rather the HTTPS side.

    The guide's definition is as follows:

    Code:
    NameVirtualHost *:80
    
    <VirtualHost *:80>
        ServerAdmin admin@yourdomain.com
        DocumentRoot /var/www/html
        ServerName www.yourdomain.com
        ErrorLog /var/log/httpd-error.log
        CustomLog /var/log/httpd-access.log common
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerName mail.yourdomain.com
        ServerAdmin admin@yourdomain.com
        Redirect / https://mail.yourdomain.com:60443/
        ErrorLog /var/log/zimbra-error.log
       CustomLog /var/log/zimbra-access.log common
    </VirtualHost>
    And my definition is as follows:

    Code:
    <VirtualHost *:80>
            ServerName      fqdn.com
            ServerAlias     www.fqdn.com
            ServerAdmin     admin@fqdn.com
            DocumentRoot    /opt/www/lrcomm
            CustomLog       /opt/www/logs/lrcomm.access.log combined
            ErrorLog        /opt/www/logs/lrcomm.error.log
    </VirtualHost>
    
    <VirtualHost *:80>
            ServerName              zimbra.fqdn.com
            ServerAdmin             admin@fqdn.com
            ProxyPass               / http://zimbra.fqdn.com:81/
            ProxyPassReverse        / http://zimbra.fqdn.com:81/
            ErrorLog                /opt/www/logs/zimbra-lrcomm-error.log
            CustomLog               /opt/www/logs/zimbra-lrcomm-access.log common
    </VirtualHost>
    The end result, is when I type in the current internal IP address (behind a firewall so I had to set up Split DNS, which appears to be working at this stage of the game) and the HTTP port number, it does its certificate warning and takes me to the HTTPS site.

    Now, I'm aware that my directories are /opt/www and it's made that way due to a partitioning screw up I did so I'm content with keep it all on the same partition and mount point. All necessary paths (to my knowledge have been changed).

    I've triple checked and my HTTP Zimbra port is 81 and my HTTPS Zimbra port is 51111. But, I haven't even set up the HTTPS redirect as I'll probably never need it, I'll just tack on the port number to any links I direct its way.

    Unfortunately, I'm dependent on someone else to give me a public static which they haven't done yet so none of this is public just yet, but I don't see how that would have anything to do with it. Doesn't make sense as to why HTTP would be redirecting to HTTPS, unless I misunderstood the section title and did the wrong steps.

    So am I missing something?
    Last edited by buee; 07-18-2011 at 02:00 PM. Reason: Typo

  2. #2
    Join Date
    Feb 2009
    Posts
    76
    Rep Power
    6

    Default

    This was an error in the config. I've never seen Zimbra change the default HTTP Mode to Mixed, but that's what it was. I set it to both, restarted, now the issue is resolved.

Similar Threads

  1. ZCS7 Beta only Listens on IPv6
    By tobru in forum Installation
    Replies: 2
    Last Post: 03-25-2011, 03:31 AM
  2. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  3. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 04:43 AM
  4. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 08:56 PM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 AM

Posting Permissions

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