arquivo nginx.conf.web

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

arquivo nginx.conf.web

Postby pgeovanni » Wed Sep 09, 2020 8:32 pm

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: 1308
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

Postby DualBoot » Thu Sep 10, 2020 1:28 pm

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

Postby pgeovanni » Wed Sep 23, 2020 11:48 am

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: 1308
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

Postby DualBoot » Thu Sep 24, 2020 7:49 am

Variables are taken from Zimbra LDAP.

Regards

Return to “Administrators”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests