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 Display Modes
  #1 (permalink)  
Old 03-10-2006, 01:11 AM
Active Member
 
Posts: 33
Default Apache ModProxy to zimbra?

I have my webserver setup to port 80 and zimbra to port 8080. I have a virtualHost setup with modproxy that passes all requests from mail.MYDOMAIN.com to mail.MYDOMAIN.COM:8080 to connect with zimbra. It bounces around to the ssl port and then ends up back on 8080.

How do I configure modproxy to prevent this. I would like it to stay always on port 80 inside my virtual.

I'd be fine with having the zimbra-apache on port 80 and move tomcat to 8080, so long as I can setup the same virtual. Right now I have the zimbra-apache on the default 7780. Since they are on differnt ports the two instances of apache con coexist.
Reply With Quote
  #2 (permalink)  
Old 03-10-2006, 09:51 AM
Zimbra Employee
 
Posts: 2,073
Default

zimbra-apache is for the spellcheck server, not for the email app - the email app runs in tomcat only.
Reply With Quote
  #3 (permalink)  
Old 03-10-2006, 12:10 PM
Special Member & Volunteer
 
Posts: 155
Default

Quote:
Originally Posted by kbaker
I have my webserver setup to port 80 and zimbra to port 8080. I have a virtualHost setup with modproxy that passes all requests from mail.MYDOMAIN.com to mail.MYDOMAIN.COM:8080 to connect with zimbra. It bounces around to the ssl port and then ends up back on 8080.

How do I configure modproxy to prevent this. I would like it to stay always on port 80 inside my virtual.
One way to do this is to use mod_jk instead of mod_proxy. The mod_jk module is designed to talk directly to Tomcat.

There's a HOWTO on setting this up for Zimbra here on the wiki:

http://wiki.zimbra.com/index.php?tit...%28mod_jk %29

I recently set that up and it works pretty well.

That is, Zimbra runs on port 7080, but none of my users ever see that. As far as the users can tell, requests are all going through port 80.

Good luck!
-Eric
Reply With Quote
  #4 (permalink)  
Old 03-21-2006, 04:28 PM
Active Member
 
Posts: 33
Default

As was stated, mod_jk may work just as well, as that's what it is designed for. Otherwise, if you are set on using mod_prozy, it should be fairly straight forward, although I do typically provide it a URL to redirect off.

For example, in your situation, you would have the following in the configuration for your virtual host:

ProxyPass /zimbra http://mail.MYDOMAIN.COM:8080/zimbra
ProxyPassReverse /zimbra http://mail.MYDOMAIN.COM:8080/zimbra

Dont forget the /service proxy, otherwise you will not be able to log in.

ProxyPass /service http://mail.MYDOMAIN.COM:8080/service
ProxyPassReverse /service http://mail.MYDOMAIN.COM:8080/service

This is how I currently have my Zimbra installation set up; I proxy all requests to my Zimbra server from my primary webserver.

Good luck.
Reply With Quote
  #5 (permalink)  
Old 03-25-2006, 02:19 PM
Active Member
 
Posts: 38
Default

In 3.0.1 I've been unable to get mod_jk to work with zimbra. The connector is there, and is passing things correctly to tomcat, though there appears to be an issue in the soap messaging that causes zimbra to not work correctly.

After about two days of that I went ahead and used mod_proxy and have had no issues.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0