Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy to zimbra server port problems

Posted by jimmyk 
Nginx reverse proxy to zimbra server port problems
February 08, 2011 04:27PM
Hello Nginx forum users,

I am trying to use Debian Lenny with Nginx in a DMZ to do reverse proxying to a Centos 5.5 Zimbra LAN server everything works fine a for standard http Zimbra client webaccess, but when i change to a non standard http port (:8180) the zimbra web client login and logout fail. If i manually insert/reinsert the port :8180 info into the url during the login and logout failure and refresh the browser i can eventually login and out of the zimbra client.

Pointing the browser directly at the Zimbra server works fine regardless of the port that is used so i am assuming the my Nginx configuration might not be right.

Could anyone offer any assistance on how the get a DMZ nginx reverse proxy to connect to an LAN zimbra server on a non-standard port (8180), or if it is actually possible?

If any of my configs are required i will be happy to post more info.

Jimmyk
Re: Nginx reverse proxy to zimbra server port problems
February 08, 2011 08:49PM
I manage to solve this issue myself by adding the $proxy_port string to the end of the following settings in /etc/nginx/conf.d/proxy.conf

proxy_set_header Host $host:$proxy_port;
proxy_set_header X-Real-IP $remote_addr:$proxy_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for:$proxy_port;

Please mark as solved

Jimmyk
Re: Nginx reverse proxy to zimbra server port problems
February 09, 2011 07:37PM
Hello again Nginx forum users,

Having solved my problem getting Nginx in a DMZ to do reverse proxying to a Zimbra LAN server via http i am now struggling to do the the same with the https protocol on port 8181.

Is it possible to use Nginx to reverse proxy an external https connection through to a Zimbra LAN machine as follows?

WAN---------->https---------->[Lenny/Nginx0.6.32]---------->https---------->[Centos5.5/Zimbra6.0.10]

or would i need to use the follow setup (which i think i have managed to get working)?

WAN---------->https---------->[Lenny/Nginx0.6.32]---------->http---------->[Centos5.5/Zimbra6.0.10]

Any advice would be appreciated.

JimmyK
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready