Welcome! Log In Create A New Profile

Advanced

Re: Proxy parameter to nginx service

June 05, 2017 09:44PM
Hi

I think it is tough by nguni itself, maybe you can use the ngx_lua, save
the environment to Nginx variable, and use them in proxy_pass.


On 5 June 2017 at 22:17:05, juan_barbancho_rsi@cajarural.com (
juan_barbancho_rsi@cajarural.com) wrote:

Hi Guys,

I need to use nginx to made a proxy_pass to some url, but I need to pass
some proxy param in order to do not get the connection " upstream timed out
(110: Connection timed out) "

Some people know how I could pass the proxy envirnoment to nginx software.

export http_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY
export https_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY
http://USERNAME:PASSWORD@ip_proxy:port_proxy/
export ftp_proxy=http://USERNAME:PASSWORD@IP_PROXY:PORT_PROXY
http://USERNAME:PASSWORD@ip_proxy:port_proxy/
export no_proxy=localhost,
127.0.0.0/8,127.0.1.1,127.0.1.1*,local.home,

This confign run well in curl or yum.
Saludos

Juanp


------------ ADVERTENCIA LEGAL ---------------
"Este mensaje puede contener INFORMACIÓN CONFIDENCIAL, PRIVILEGIADA y/o
DATOS DE CARÁCTER PERSONAL. Si usted no es el destinatario indicado en este
mensaje (o el responsable de entregarlo al mismo) no debe copiar o entregar
este mensaje a nadie más. En dicho caso le rogamos que destruya este
mensaje y lo notifique al remitente. Por favor, indique inmediatamente si
usted o su empresa no aceptan comunicaciones de este tipo por Internet. Las
opiniones, conclusiones y demás información incluida en este mensaje que no
esté relacionada con asuntos profesionales del Grupo Caja Rural se
entenderá que nunca se ha dado, ni está respaldada por el mismo."

------------ LEGAL ADVICE ---------------
"This message can contain restricted confidential information or personal
data. If you are not the intended recipient (or the responsible to give it)
you shouldn't copy or forward this message. If this message has been
received by mistake, please, delete it and inform to addressee. If you or
your company don't accept this kind of information by internet, please send
us a notification inmediately. Grupo Caja Rural are not responsible for the
opinions, conclusions, contents or any file attached included in this
message, which were not related to professional matters.”
-----------------------------------------------
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy parameter to nginx service

Anonymous User June 05, 2017 10:18AM

Re: Proxy parameter to nginx service

tokers June 05, 2017 09:44PM

Re: Proxy parameter to nginx service

Anonymous User June 06, 2017 02:22AM

Re: Proxy parameter to nginx service

Francis Daly June 06, 2017 12:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
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