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