Caddy Version: v2.0.0-rc.2 h1:7NOaxYrsnQ5D3rcLGn2UnLZHLfBpgrfM/JNTLhjCJ1c=
Ubuntu Server 16.04
PHP 7.3.X
I found some insures with your Caddyfile in Caddy v2, for example if you change “Permalink Settings” with a different option as “Plain” you get this error when open a post:
That error is generated by the web browser (the client), not by Caddy. I’m not familiar with WordPress so I can’t really help here, but if you post more details about your configuration of Caddy and WordPress and the full log output from Caddy, maybe someone here can help you!
To be clear, WordPress’ own upload functionality does not allow for PHP files to be uploaded.
That means you only require this protection if you run untrustworthy plugins that allow other methods of uploading files, in which case you may find those files are not necessarily neatly placed within /wp-content/uploads/, which might make this line of defense useless anyway.