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-06-2010, 09:09 AM
Active Member
 
Posts: 44
Default using default ports 80, 443 with other services

i've got other services using port 80, 443 on my server, with nginx proxying between many different services using virtual hosts

however, for zimbra i've got it running on port 81 and port 444 so as to not conflict with my other services.

i'ld like to explore a way to get zimbra running on the default ports along with my other services.

i've tried configuring my personal nginx to proxy a virtual host at 80 to 81 (443 to 444), but this falls short of my goals because the zimbra web client during login will forward physically to 81/444 after login. i'ld have to manually retype the URL after login.

has anyone found an alternative solution that is more integrated?
Reply With Quote
  #2 (permalink)  
Old 07-06-2010, 08:28 PM
Partner (VAR/HSP)
 
Posts: 260
Default

we do nginx proxying from another host that might help you out here. if you seach the forums you should be able to find a sample nginx config that does what you need, with some tweaking of course.
__________________
http://www.solutionsfirst.com.au/hosting/zimbra/
Australia's premier Zimbra Hosting Partner
Resellers wanted!
Reply With Quote
  #3 (permalink)  
Old 07-07-2010, 01:45 PM
Active Member
 
Posts: 44
Default solved!

i came up with a round-about solution that works for my particular setup.

the proxying from my personal nginx to localhost was working, but when logging in, it would always redirect out to port 444, i realized this was because zimbra was set to always forward to https

i modified it to use http instead with

PHP Code:
zmtlsctl http 
my nginx takes care of ssl, and proxies 443 to localhost:81, and everything works.

in case anyone is interested, here is my nginx conf that proxies to zimbra which runs off port 81 (used) and 444 (unused)

PHP Code:
# redirect http to https version
server {
   
listen      80;
   
server_name mail.mydomain.com;
   
rewrite     ^(.*)   https://mail.mydomain.com$1 permanent;
}

# my personal nginx will take care of ssl
# and then use zimbra http underneath since i don't care
# about security within the server, as it is all running on the same box
server {
   
listen   443;
   
server_name  mail.mydomain.com;

   
ssl  on;
   
ssl_certificate  /path/to/cert.pem;
   
ssl_certificate_key  /path/to/cert.pem;

   
ssl_session_timeout  5m;

   
ssl_protocols  SSLv2 SSLv3 TLSv1;
   
ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
   
ssl_prefer_server_ciphers   on;

   
location / {
      include /
etc/nginx/proxy.conf;
      
proxy_pass  http://127.0.0.1:81;
      
proxy_redirect  default;
   }

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.