V2: HTTP proxy in place of fastcgi in Wordpress

:man_shrugging:

I don’t know your file structure, so I can’t confirm.

But yes, you can do that, but then you’ll need to add this inside of the handle I gave you to make the rewrite before serving:

rewrite * {http.matchers.file.relative}

So like

@exists file {path} /foo{path}/index.html
handle @exists {
	rewrite * {http.matchers.file.relative}
	file_server
}

That’s what encode gzip does. Caddy doesn’t support br encoding because it’s very slow to compress at runtime, it’s better if it’s pre-compressed. But gzip is fast.

Yeah:

I guess:

@exists {
	file {path}
	not path *.php *.ini
}

But still. This all still gives me the shivers. I would never do something like this tbh. Seems like a bad idea. Way overcomplicates things.

1 Like