File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 428
428
# The `limitreqfieldsize` parameter sets the maximum ammount of _bytes_ that will
429
429
# be allowed within a request header.
430
430
#
431
+ # @param limitreqline
432
+ # The 'limitreqline' parameter sets the limit on the allowed size of a client's HTTP request-line
433
+ #
431
434
# @param ip
432
435
# Specifies the ip address
433
436
#
526
529
Integer $max_keepalive_requests = $apache::params::max_keepalive_requests,
527
530
Integer $limitreqfieldsize = 8190,
528
531
Integer $limitreqfields = 100,
532
+ Optional[Integer] $limitreqline = undef ,
529
533
Stdlib::Absolutepath $logroot = $apache::params::logroot,
530
534
Optional[Stdlib::Filemode] $logroot_mode = $apache::params::logroot_mode,
531
535
Apache::LogLevel $log_level = $apache::params::log_level,
Original file line number Diff line number Diff line change @@ -562,6 +562,22 @@ class { 'apache':
562
562
end
563
563
end
564
564
565
+ describe 'limitreqline' do
566
+ pp = <<-MANIFEST
567
+ class { 'apache':
568
+ limitreqline => 8190,
569
+ }
570
+ MANIFEST
571
+ it 'applys cleanly' do
572
+ apply_manifest ( pp , catch_failures : true )
573
+ end
574
+
575
+ describe file ( apache_hash [ 'conf_file' ] ) do
576
+ it { is_expected . to be_file }
577
+ it { is_expected . to contain 'LimitRequestLine 8190' }
578
+ end
579
+ end
580
+
565
581
describe 'file_e_tag' do
566
582
pp = <<-MANIFEST
567
583
class { 'apache':
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ MaxKeepAliveRequests <%= @max_keepalive_requests %>
15
15
KeepAliveTimeout <%= @keepalive_timeout %>
16
16
LimitRequestFieldSize <%= @limitreqfieldsize %>
17
17
LimitRequestFields <%= @limitreqfields %>
18
+ <% if @limitreqline -%>
19
+ LimitRequestLine <%= @limitreqline %>
20
+ <% end -%>
18
21
<%# Actually >= 2.4.24, but the minor version is not provided -%>
19
22
<%- if @http_protocol_options and scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
20
23
HttpProtocolOptions <%= @http_protocol_options %>
You can’t perform that action at this time.
0 commit comments