Welcome! Log In Create A New Profile


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;
worker_connections 1024;
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: 297
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