|
From: | Jorge Pereira |
Subject: | Re: Problems with M/Monit proxy / redirects |
Date: | Mon, 4 Sep 2017 18:33:02 -0300 |
Hi,I created a public NGINX instance https://mmonit.mycompany.com/ proxying to https://mmonit.internal.zen.The problem is happening when I access the https://mmonit.mycompany.com/ then am redirected to the https://mmonit.internal.lanNginxserver {server_name mmonit.mycompany.com...location / {proxy_set_header Proxy-Connection "Keep-Alive";proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header REMOTE_ADDR $remote_addr;proxy_cache_bypass $http_upgrade;proxy_pass_header Server;proxy_pass http://mmonit.internal.lan:8080 ;proxy_http_version 1.1;}........}My M/Monit 3.7.1 setup.<Service><Connector proxyScheme="https"proxyName="mmonit.internal.lan" proxyPort="443"address="*"port="8080"processors="10"processorTimeout="60"/><Engine name="mmonit" defaultHost="mmonit.internal.lan" fileCache="100MB"> <Realm url="" /><ErrorLogger directory="/var/log/mmonit/" fileName="error.log" rotate="week" /><Host name="mmonit.internal.lan" address="*" appBase="." ><AccessLogger directory="/var/log/mmonit/" fileName="mmonit_access.log" rotate="week" /><Logger directory="/var/log/mmonit/" fileName="mmonit.log" rotate="week" timestamp="true" /><Context path="" docBase="docroot" sessionTimeout="1800" maxActiveSessions="4096" saveSessions="true" /><Context path="/collector" docBase="docroot/collector" sessionTimeout="1800" maxActiveSessions="4096" saveSessions="true" /></Host></Engine></Service>Any clue? suggestions?--Jorge Pereira
[Prev in Thread] | Current Thread | [Next in Thread] |