R
R
Ruslan Egorov2014-08-29 11:29:04
Nginx
Ruslan Egorov, 2014-08-29 11:29:04

How to set up nginx in conjunction with zimbra (mail server), since zimbra has a web face and site on the same machine and one IP?

Prompt or direct! How to set up nginx in conjunction with zimbra (mail server), since zimbra has a web face and site on the same machine and one IP?
There is a babruisk.com domain and a pochta.babruisk.com subdomain (for the mail server) on the same IP 99.199.99.199
The server is running CentOS 6.5, at the moment nginx is turned off so that mail can work, mail has a web muzzle on port 80. Now, when you enter babruisk.ru and pochta.babruisk.ru, you get to the web face of the mail server.
Task:
When entering babruisk.ru, I got to a site located, for example, in the /var/www/html/babruisk directory.
When I entered pochta.babruisk.ru, I got to the web face of the mail server.
I am setting up for the first time and am not familiar with nginx. Help me please!!!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Senkevich, 2014-08-29
@ssenkevich

server {
    server_name babruisk.ru;
    # конфиг для сайта
}
server {
    server_name pochta.babruisk.ru;
    # конфиг для веб-морды почтового сервера
}

R
Ruslan Egorov, 2014-09-03
@samplespace

To know how to write the correct config.
For the site, the config is more understandable:

server {
           server_name babruisk.ru www.babruisk.ru;
           location / {
                   root /var/www/html/babruisk
                   index index.php index.html index.htm;
           }
}

But what about the Zimbra mail server

M
MaySky, 2014-12-10
@MaySky

Zimbra has a Zimbra-Prox module, which is the same Nginx.
It can be installed even for a "single-server" installation, or you can install it later without completely reinstalling Zimbra.
If you bet with him, then look here and act according to logic.
wiki.zimbra.com/wiki/Zimbra_Proxy_Guide
_ _
_ Zimbra uses this web server as standard.
Or transfer Zimbrow https and http to other ports, and in the already installed (not Zimbrow) nginx, prescribe configurations for redirecting to this port at server_name pochta.babruisk.ru;
Otherwise, no way, two web servers on the same port will not get along.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question