Welcome! Log In Create A New Profile

Advanced

how to custom nginx as a forward proxy

March 25, 2012 10:17PM
as I know squid can be use a proxy server , but currently I don't want to use it , but want to use nginx ,I google "forward proxy " , and get some idea :
add
server {
listen 8080;
resolver 8.8.8.8;
location / {
proxy_pass http://$http_host$request_uri;
}

but when I add the context to nginx.conf , and reload nginx

view the website such as
http://127.0.0.1:8080/www.yahoo.com get no response ,so can guys help me :)
thanks.
Subject Author Posted

how to custom nginx as a forward proxy

edwin March 25, 2012 10:17PM

Re: how to custom nginx as a forward proxy

edwin March 25, 2012 10:31PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready