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

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-10-2008, 10:39 AM
Junior Member
 
Posts: 7
Smile Zimbra working But some small issues

Hello All,

I want to say Zimbra is a great product which I have got up and running without too much hassle.

I have some small issues which I am hoping people can help me here resolve.

First off let me describe my setup (config files):

Apache 2.2 --> Mod_JK (AJP13) --> Zimbra

Here are my config files (Im not a Linux noob so assumption in the theory of mail/web/j22 app servers can be assumed )

Mod_JK.conf
Code:
LoadModule jk_module modules/mod_jk-1.2.23-apache-2.2.x-linux-i686.so

JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile       logs/mod_jk.log
JkLogLevel      error
JkRequestLogFormat      "%w %V %U %s %T %B %H %m"
JkShmFile           /var/tmp/jk.shm

# Jkstatus
JkMount /jkserver-status jkstatus
JkMount /jkserver-status/* jkstatus

    deny from all
    allow from 192.168.1.0/24
Workers.properties
Code:
# Worker list
worker.list=zimbra,jkstatus

# Worker definitions
# main loadbalancer worker
worker.zimbra.type=lb

# balancing algorithm
worker.zimbra.method=Request

worker.zimbra.balance_workers=mailhost
worker.zimbra.lock=Pessimistic

# status page worker
worker.jkstatus.type=status

# Worker Reference - contains parameters for all individual workers (not loadbalancer)
worker.reference.port=8009
worker.reference.type=ajp13
worker.reference.lbfactor=1


# Zimbra Balance workers
worker.mailhost.reference=worker.reference
worker.mailhost.host=192.168.1.10
Virtual.conf
#### Zimbra ######
HTML Code:
<VirtualHost *:80>
ServerName myhost.mydomain.com
ServerAlias webmail.mydomain.com

Redirect Permanent / https://webmail.mydomain.com/

</VirtualHost>

<VirtualHost *:443>
ServerName myhost.mydomain.com
ServerAlias webmail.mydomain.com

SSLEngine On
SSLCertificateFile /opt/zimbra/ssl/zimbra/server/server.crt
SSLCertificateKeyFile /opt/zimbra/ssl/zimbra/server/server.key


# Modify the following two paths, according to your distribution's filesystem layout
JkLogLevel          error
JkLogStampFormat    "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat  "%w %V %T"
JkOptions           +ForwardKeySize +ForwardURICompat -ForwardDirectories

RewriteEngine On
RewriteRule     ^/$     /zimbra [R]

JkMount             /*              zimbra
JkMount             /zimbra         zimbra
JkMount             /zimbra/        zimbra
JkMount             /zimbra/*       zimbra
JkMount             /service        zimbra
JkMount             /service/       zimbra
JkMount             /service/*      zimbra

# Add the following lines to enable access to the Zimbra administrative web interface
JkMount             /zimbraAdmin    zimbra
JkMount             /zimbraAdmin/   zimbra
JkMount             /zimbraAdmin/*  zimbra
</VirtualHost>

####################################
As you can see I have configured virtual host and redirected any http traffic to https. I have also wrtten a rewrite rule where anything going to / get /zimbra by default.


jetty.xml.in
HTML Code:
 <Call name="addConnector">
      <Arg>
        <New id="ajp" class="org.mortbay.jetty.ajp.Ajp13SocketConnector">
          <Set name="port">8009</Set>
        </New>
      </Arg>
    </Call>

service.web.xml.in I did edit alot of this file so I have included it all.

* could not drop in code box so I have attached the file

I had to edit the following file to get ZimbraAdmin to work via https

zimbraAdmin.web.xml.in
Code:
 
                admin.allowed.ports
                7071, 443, 8009
        
I couldnt get Zimbra admin to work over 8009? not sure what the problem is.

Anyway, as I have mentioned this is now working. The problem is when I get some email I try to open it, I get 503 error. I changed an option in preferences to stop trying to open all emails as HTML this solved some of the emails (which were infact text) however other emails then failed to open. All with the same ServiceRequest Error 503.

Any help would be appreciated. I apologies for creating such a long post (on my first post) but I thougt more information the better.

Regards

Kash
Attached Files
File Type: txt service.web.xml.in.txt (10.3 KB, 71 views)
Reply With Quote
  #2 (permalink)  
Old 07-11-2008, 01:44 AM
Junior Member
 
Posts: 7
Default

Ok,

Ive changed from using AJP to modproxy and it works fine I think, probably needs further testing.
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.