Caddy 2 file Reverse Proxy CloudFront

I need to proxypass or reverse proxy on v2 Caddyfile so that I serve my WordPress wp-includes and wp-content folder via CDN.

What will be the best way to achieve that? Such as:

ProxyPass /wp-includes/* connectiontimeout=2400 timeout=2400
ProxyPass /wp-content/* connectiontimeout=2400 timeout=2400

reverse_proxy /wp-includes/*
reverse_proxy /wp-content/*

Or, I keep something like: on those?

Please help me!

Did you try it? Does it not work? If not, what happens?

Please fill out the thread template, it’s there to help you, and also us so we can better help you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.