Skip to content

mod_proxy_connect: Implement "AllowCONNECT None". - #719

Closed
notroj wants to merge 1 commit into
apache:trunkfrom
notroj:proxy-connect-none
Closed

mod_proxy_connect: Implement "AllowCONNECT None".#719
notroj wants to merge 1 commit into
apache:trunkfrom
notroj:proxy-connect-none

Conversation

@notroj

@notroj notroj commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator
The value is documented possibly by accident in r1932337, but not implemented.

* modules/proxy/mod_proxy_connect.c (connect_conf): Add "none". (set_allowed_ports): Accept "None"; reject combining it with ports in the same context. (merge_config): Special-case "None": it disallows all ports and overrides an inherited list, and an inherited "None" is overridden by a port list in a vhost; two port lists still merge as a union. (allowed_port): Disallow all ports when "none" is set.

* docs/manual/mod/mod_proxy_connect.xml: Clarify the merge behaviour and the "None" restriction.

* test/modules/proxy/test_07_connect.py: Added.

* test/modules/proxy/env.py: Load mod_proxy_connect for the suite.

The value is documented possibly by accident in r1932337, but not
implemented.

* modules/proxy/mod_proxy_connect.c (connect_conf): Add "none".
  (set_allowed_ports): Accept "None"; reject combining it with ports in
  the same context.
  (merge_config): Special-case "None": it disallows all ports and
  overrides an inherited list, and an inherited "None" is overridden by
  a port list in a vhost; two port lists still merge as a union.
  (allowed_port): Disallow all ports when "none" is set.

* docs/manual/mod/mod_proxy_connect.xml: Clarify the merge behaviour and
  the "None" restriction.

* test/modules/proxy/test_07_connect.py: Added.

* test/modules/proxy/env.py: Load mod_proxy_connect for the suite.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant