arquivo nginx.conf.web

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
pgeovanni
Posts: 2
Joined: Wed Sep 09, 2020 8:28 pm

arquivo nginx.conf.web

Post by pgeovanni »

Good afternoon friends, has anyone managed to change this nginx.conf.web file and save it?
I've tried several ways to change the webmail port and I can't, it's always zero
when I try to start zimbra, the proxy gives this message:

Starting proxy ... nginx: [emerg] invalid port in upstream "mail.transultransporte.com.br.com.br" in /opt/zimbra/conf/nginx/includes/nginx.conf.web:49
failed.

when I look at the file in question, tell me this line:
upstream zimbra_ssl_webclient
{
server mail.transultransporte.com.br Fail_timeout = 60s;
server mail.transultransporte.com.br Fail_timeout = 60s;

zmauth;


that is, the port is set to zero. already tried several commands to change and nothing
I modify the file with the right port number, but when I restart the service it goes back to the previous configuration

I tried this command in the hope of changing the door and nothing:
./zmproxyconfig -e -w -o -a 8080: 80: 8443: 443 -x https -H `zmhostname`

Can someone help me ?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: arquivo nginx.conf.web

Post by DualBoot »

Hello,

each Nginx configuration file is rewritten by Zimbra when it restarts.
If you want to add permanent modification, you must do it into Nginx template files. But you must be aware of that it will replace at Zimbra upgrade.

Regards,
pgeovanni
Posts: 2
Joined: Wed Sep 09, 2020 8:28 pm

Re: arquivo nginx.conf.web

Post by pgeovanni »

Thanks for the answer.

when viewing the nginx template files, I noticed some variables, for example:
upstream $ {web.ssl.upstream.webclient.name}
{
$ {web.ssl.upstream.webclient.:servers}
zmauth;
}
Could you tell me where the values are stored?
already tried and could not identify, when I restart zimbra it read the configuration files that are in ldap?

I noticed that the zmproxyconf command causes the file to be rewritten.

thank you
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: arquivo nginx.conf.web

Post by DualBoot »

Variables are taken from Zimbra LDAP.

Regards
Post Reply