|
18 | 18 | # [*ssl_only*] - Required if the SSL and normal vHost have the same port.
|
19 | 19 | # [*location_alias*] - Path to be used as basis for serving requests for this location
|
20 | 20 | # [*stub_status*] - If true it will point configure module stub_status to provide nginx stats on location
|
21 |
| -# [*custom_cfg*] - Expects a hash with custom directives, cannot be used with other location types (proxy, fastcgi, root, or stub_status) |
| 21 | +# [*location_custom_cfg*] - Expects a hash with custom directives, cannot be used with other location types (proxy, fastcgi, root, or stub_status) |
22 | 22 | # [*location_cfg_prepend*] - Expects a hash with extra directives to put before anything else inside location (used with all other types except custom_cfg)
|
23 | 23 | # [*location_cfg_append*] - Expects a hash with extra directives to put after everything else inside location (used with all other types except custom_cfg)
|
24 | 24 | # [*try_files*] - An array of file locations to try
|
|
78 | 78 | $location_alias = undef,
|
79 | 79 | $option = undef,
|
80 | 80 | $stub_status = undef,
|
81 |
| - $custom_cfg = undef, |
| 81 | + $location_custom_cfg = undef, |
82 | 82 | $location_cfg_prepend = undef,
|
83 | 83 | $location_cfg_append = undef,
|
84 | 84 | $try_files = undef,
|
|
100 | 100 | default => file,
|
101 | 101 | }
|
102 | 102 |
|
103 |
| - notice "custom_cfg ${custom_cfg}" |
104 |
| - |
105 | 103 | ## Check for various error conditions
|
106 | 104 | if ($vhost == undef) {
|
107 | 105 | fail('Cannot create a location reference without attaching to a virtual host')
|
108 | 106 | }
|
109 |
| - if (($www_root == undef) and ($proxy == undef) and ($location_alias == undef) and ($stub_status == undef) and ($fastcgi == undef) and ($custom_cfg == undef)) { |
110 |
| - fail('Cannot create a location reference without a www_root, proxy, location_alias, fastcgi, stub_status, or custom_cfg defined') |
| 107 | + if (($www_root == undef) and ($proxy == undef) and ($location_alias == undef) and ($stub_status == undef) and ($fastcgi == undef) and ($location_custom_cfg == undef)) { |
| 108 | + fail('Cannot create a location reference without a www_root, proxy, location_alias, fastcgi, stub_status, or location_custom_cfg defined') |
111 | 109 | }
|
112 | 110 | if (($www_root != undef) and ($proxy != undef)) {
|
113 | 111 | fail('Cannot define both directory and proxy in a virtual host')
|
|
0 commit comments