Personal tools
You are here: Home Leocornus Leocornus Buildout Config Repository. Configure Nginx as a Forward Proxy Server

Configure Nginx as a Forward Proxy Server

Nginx as Forward Proxy Server

the configuration is very simple:

server {

    listen 10.10.10.110:8888;
    server_name 10.10.10.110;
    error_log /var/log/frontend-error.log debug;
    access_log /var/log/frontend-access.log;
    root /var/www;
    #index index.php;

    location / {

        resolver 8.8.8.8;
        proxy_pass $scheme://$http_host$uri$is_args$args;
    }
}

Nginx is not designed as the Forward Proxy Server, as the creator of Nginx (Igor Sysoev) mentioned in one of the forum question. Squid is the one for forward proxy from very begining.

Document Actions