Welcome! Log In Create A New Profile

Advanced

direct the request to an external proxy

direct the request to an external proxy
January 06, 2021 03:02AM
I have a VM with nginx reverse proxy configured in it. I want to redirect those requests coming to to a CDN via a forward proxy which is already configured and working well.
The VM, I am working on does not have any direct internet access.
How can I do this?

This is my nginx.conf right now.


worker_processes 1;
daemon on;
error_log /var/log/error.log;
pid /var/run/nginx.pid;
events
{
worker_connections 1024;
}
http
{
server
{
listen 8000 default;
access_log /var/log/access.log;

location /
{
proxy_pass http://my-cdn-url.com;
}
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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