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 01-01-2011, 06:01 AM
Starter Member
 
Posts: 1
Default Apache and Zimbra in ONE Cent OS Box

Hi,

Happy New Year 2011.

I am a beginner in Linux. I want to install Apache (web server) and Zimbra 6 (mail server) all in one Cent OS 5 box. When user will hit www.xyzdomain.com then website will be loaded and when user will hit mail.xyzdomain.com then Zimbra webmail would get loaded.

I tried a lot (namely httpd.conf file) but when I hit www.xyzdomain.com, it loads Zimbra webmail which I don't want. I understand that only few changes in 2/3 files would make all things to happen that I want. Just not getting through.

Can anyone help me with scripts and necessary tips? It would be great if you could.


Regards//
Biplob
Reply With Quote
  #2 (permalink)  
Old 01-03-2011, 10:53 AM
Active Member
 
Posts: 33
Default

Hi,

Happy New Year 2011!

The easiest way is to use 2 IP adresses and to change your DNS to point to both services: web page and mail.

Another way which I use is to create new file in /opt/zimbra/conf/nginx/includes , let say nginx.conf.my

Add that file as include in nginx.conf.web:
include conf/nginx/includes/nginx.conf.my;

The file nginx.conf.my should contain for example:

server {
listen 80;
server_name www.domain.com;
access_log log/www.domain.com.access.log main;
client_max_body_size 5242880000;

location / {
proxy_pass http://10.0.0.1:25080; #Apache should listen to that port
}
}

server {
listen 80;
server_name mail.domain.com;
access_log log/mail.domain.com.access.log main;
client_max_body_size 5242880000;

location / {
proxy_pass http://10.0.0.1:80; #Zimbra standard port
}
}

Cheers,
first
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.