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;
}
}
}