Results 1 to 2 of 2

Thread: Apache and Zimbra in ONE Cent OS Box

  1. #1
    BiplobChakma is offline Starter Member
    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    4

    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

  2. #2
    first is offline Active Member
    Join Date
    Oct 2007
    Posts
    33
    Rep Power
    7

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Did I miss something? (Zimbra GA 6.0.8 on Ubuntu 10.04)
    By vpetersson in forum Installation
    Replies: 2
    Last Post: 10-26-2010, 06:29 AM
  2. [SOLVED] Spam Being Sent Thru Server - Help Needed!
    By msf004 in forum Administrators
    Replies: 22
    Last Post: 03-14-2008, 11:11 PM
  3. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  4. port 7071 not listening OS X install
    By leeimber in forum Installation
    Replies: 7
    Last Post: 03-21-2006, 10:47 AM
  5. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •