Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-2011, 02:00 PM
Loyal Member
 
Posts: 76
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
Reply With Quote
  #2 (permalink)  
Old 07-26-2011, 09:13 AM
Loyal Member
 
Posts: 76
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.