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/* http://d20469kx5okps2.cloudfront.net connectiontimeout=2400 timeout=2400
ProxyPass /wp-content/* http://d20469kx5okps2.cloudfront.net connectiontimeout=2400 timeout=2400
Or,

reverse_proxy /wp-includes/* http://d20469kx5okps2.cloudfront.net
reverse_proxy /wp-content/* http://d20469kx5okps2.cloudfront.net

Or, I keep something like:

http://d20469kx5okps2.cloudfront.net:80 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.