Skip to content

Support remap.yaml#12813

Open
serrislew wants to merge 6 commits intoapache:11-Devfrom
serrislew:remap_yaml
Open

Support remap.yaml#12813
serrislew wants to merge 6 commits intoapache:11-Devfrom
serrislew:remap_yaml

Conversation

@serrislew
Copy link
Contributor

Support YAML format for remap rules. Not replacing remap.config but providing additional remap option to define configs in yaml. If no remap.yaml is found, defaults back to remap.config

"Prerequisite" for #12669, to YAML'fy remap configs before moving into virtualhost.yaml

@serrislew serrislew self-assigned this Jan 15, 2026
@serrislew serrislew added this to the 11.0.0 milestone Jan 15, 2026
@bryancall bryancall requested a review from bneradt January 26, 2026 22:51
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for helping us make progress on this.

@serrislew serrislew requested a review from bneradt February 2, 2026 22:58
Comment on lines 59 to 62
process_regex_mapping_config(const char *from_host_lower, url_mapping *new_mapping, UrlRewrite::RegexMapping *reg_map)
{
std::string_view to_host{};
int to_host_len;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it has code duplicated with a function of the same name in RemapConfig.cc. Maybe we can extract out logic to a shared function to deduplicate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants