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!