replace-response icon indicating copy to clipboard operation
replace-response copied to clipboard

Caddy module that performs replacements in response bodies

Results 12 replace-response issues
Sort by recently updated
recently updated
newest added

Hi, I have a generic domain name and would like to use the replace-response to reach the replacement of the real domain name requested by the user. But always replace...

I would like to replace text but only when its 200 ok and if there is any other code i would much rather not do replacement.

Hi, I use caddy 2.6.2 with replace-response and noticed some weird replacements. I want to add a webroot/subdirectory to absolute paths which are stored in environment variables `DOMAIN=mydomain.com` and `WEBROOT=/app`....

needs info

Hi, I'm trying to perform the following replace: ``` replace { host1.com:4444 host2.com:5555 } ``` But it won't match host1.com:4444. if i match only host1.com, no problem the replace works....

My caddyfile ``` a.com { import log reverse_proxy b.com { header_up Accept-Encoding identity header_up Host {upstream_hostport} header_up X-Forwarded-Host {host} } replace { foo bar } } ``` It didn't work

Unless I am misinterpreting the code and set up my Caddy incorrectly, this module does not support replacing gzip/zstd/etc. compression encoded files. Since most people use Caddyserver as a reverse...

enhancement
help wanted

Currently, placeholders are not supported in the search or replacement text. It would be *really* nice to be able to use them.

enhancement

e.g. ``` replace { current_date {{now | date "2006"}} } ``` This would be a bit more generic than https://github.com/caddyserver/replace-response/issues/26 since you're opening to a lot more results.

Hello, I'm trying to install this plugin, and it fails. 1. Fails to download with added plugin: 2. Fails with `caddy add-package` command: ``` # caddy add-package github.com/caddyserver/replace-response 2025/03/23 00:15:00.742...

Not sure if i'm doing this right, or if it's at all possible. We have an application that audits customer content via an API and tags/decorates in-line words and phrases...