Welcome! Log In Create A New Profile

Advanced

Set NGINX as localhost proxy and set headers

Posted by __npcm__ 
Set NGINX as localhost proxy and set headers
April 23, 2015 09:36AM
Hello,

I need something (I think) simple.For some tests I execute want to use NGNIX as proxy on localhost , and to set some headers for each HTTP request.

Looks like adding headers is pretty easy - I need just to use add_header ...
But is it possible to use NGINX as a proxy server on localhost (on windows).
So I'll be able to set it as a proxy via LAN settings.
I've just used some example configs but and started the nginx , but when I set is as a proxy the browsers stop working.


Best regards.
Re: Set NGINX as localhost proxy and set headers
April 23, 2015 01:59PM
> But is it possible to use NGINX as a proxy server on localhost (on
> windows).

nginx can't do proxy like you want, for this you will need to use squid.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Set NGINX as localhost proxy and set headers
April 24, 2015 02:37AM
itpp2012 Wrote:
-------------------------------------------------------
> > But is it possible to use NGINX as a proxy server on localhost (on
> > windows).
>
> nginx can't do proxy like you want, for this you will need to use
> squid.

Thanks for the reply!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 339
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready