5823eccf99
rewrite: Don't add / in Caddyfile, do it after replacer ( #6662 )
2024-11-05 10:15:31 -07:00
c839a98ff5
filesystem: Globally declared filesystems, fs
directive ( #5833 )
2024-01-13 20:12:43 +00:00
13a37688dc
rewrite: use escaped path, fix #5278 ( #5504 )
...
* use escaped path while rewriting
Signed-off-by: TP-O <letranphong2k1@gmail.com >
* restore line break
---------
Signed-off-by: TP-O <letranphong2k1@gmail.com >
2023-05-16 09:16:07 -06:00
013b510352
rewrite: Only trim prefix if matched
...
See #5073
2022-09-28 00:13:12 -06:00
a479943acd
caddyhttp: Smarter path matching and rewriting ( #4948 )
...
Co-authored-by: RussellLuo <luopeng.he@gmail.com >
2022-08-16 08:48:57 -06:00
693e9b5283
rewrite: Handle fragment before query ( fix #4775 )
2022-05-09 11:09:42 -06:00
f6900fcf53
reverseproxy: Support performing pre-check requests ( #4739 )
2022-05-06 10:50:26 -04:00
1feb65952a
rewrite: Fix a double-encode issue when using the {uri}
placeholder ( #4516 )
2022-01-13 12:17:15 -05:00
ad8d01cb66
rewrite: Implement regex path replacements
...
https://caddy.community/t/collapsing-multiple-forward-slashes-in-path-only/11626
2021-03-01 18:27:59 -07:00
88a38bd00d
rewrite: Use RawPath instead of Path ( fix #3596 ) ( #3918 )
...
Prevent information loss, i.e. the encoded form that was sent by the
client, when using URL strip/replace.
2021-01-11 09:18:53 -07:00
809e72792c
rewrite: Fix for rewrites with URI placeholders ( #3209 )
...
If a placeholder in the path component injects a query string such as
the {http.request.uri} placeholder is wont to do, we need to separate it
out from the path.
2020-04-01 00:43:40 -06:00
07ad4655db
rewrite: Make URI modifications more transactional ( #2891 )
...
Before, modifying the path might have affected how a new query string
was built if the query string relied on the path. Now, we build each
component in isolation and only change the URI on the request later.
Also, prevent trailing & in query string.
2020-01-15 11:44:21 -07:00
25dea2903e
http: A little more polish on rewrite handler and try_files directive
2020-01-11 13:47:42 -07:00
d876de61e5
rewrite: Fix query string logic
2020-01-11 11:40:03 -07:00
d418e319ab
rewrite: Rename parameters; implement custom query string parser
...
Our new parser also preserves original parameter order, rather than
re-encoding using the std lib (which sorts).
The renamed parameters are a breaking change but they're new enough
that I don't think anyone is using them.
2020-01-10 17:00:57 -07:00
724c728678
rewrite: Attempt query string fix ( #2891 )
2019-12-17 16:30:26 -07:00
09a8517065
rewrite: query string enh.; substring replace; add tests (see #2891 )
2019-12-12 14:32:35 -07:00