|
87 | 87 | value: true,
|
88 | 88 | match: %r{\s+return\s+301\s+http://rspec\.example\.com\$request_uri;\n
|
89 | 89 | \s+access_log\s+/var/log/nginx/www.rspec.example.com.access.log;\n
|
90 |
| - \s+error_log\s+/var/log/nginx/www.rspec.example.com.error.log;\n}x |
| 90 | + \s+error_log\s+/var/log/nginx/www.rspec.example.com.error.log error;\n}x |
91 | 91 | },
|
92 | 92 | {
|
93 | 93 | title: 'should not contain www to non-www rewrite',
|
|
347 | 347 | title: 'should set error_log',
|
348 | 348 | attr: 'error_log',
|
349 | 349 | value: '/path/to/error.log',
|
350 |
| - match: ' error_log /path/to/error.log;' |
| 350 | + match: ' error_log /path/to/error.log error;' |
351 | 351 | },
|
352 | 352 | {
|
353 | 353 | title: 'should allow multiple error_log directives',
|
354 | 354 | attr: 'error_log',
|
355 | 355 | value: ['/path/to/error.log', 'syslog:server=localhost'],
|
356 | 356 | match: [
|
357 |
| - ' error_log /path/to/error.log;', |
358 |
| - ' error_log syslog:server=localhost;' |
| 357 | + ' error_log /path/to/error.log error;', |
| 358 | + ' error_log syslog:server=localhost error;' |
359 | 359 | ]
|
360 | 360 | },
|
361 | 361 | {
|
|
444 | 444 | value: true,
|
445 | 445 | match: %r{\s+return\s+301\s+http://www.rspec\.example\.com\$request_uri;\n
|
446 | 446 | \s+access_log\s+/var/log/nginx/rspec.example.com.access.log;\n
|
447 |
| - \s+error_log\s+/var/log/nginx/rspec.example.com.error.log;\n}x |
| 447 | + \s+error_log\s+/var/log/nginx/rspec.example.com.error.log error;\n}x |
448 | 448 | },
|
449 | 449 | {
|
450 | 450 | title: 'should not contain non-www to www rewrite',
|
|
511 | 511 | value: true,
|
512 | 512 | match: %r{\s+return\s+301\s+https://www.rspec\.example\.com\$request_uri;\n
|
513 | 513 | \s+access_log\s+/var/log/nginx/ssl-rspec.example.com.access.log;\n
|
514 |
| - \s+error_log\s+/var/log/nginx/ssl-rspec.example.com.error.log;\n}x |
| 514 | + \s+error_log\s+/var/log/nginx/ssl-rspec.example.com.error.log error;\n}x |
515 | 515 | },
|
516 | 516 | {
|
517 | 517 | title: 'should not contain non-www to www rewrite',
|
|
1018 | 1018 | title: 'should set error_log',
|
1019 | 1019 | attr: 'error_log',
|
1020 | 1020 | value: '/path/to/error.log',
|
1021 |
| - match: ' error_log /path/to/error.log;' |
| 1021 | + match: ' error_log /path/to/error.log error;' |
1022 | 1022 | },
|
1023 | 1023 | {
|
1024 | 1024 | title: 'should allow multiple error_log directives',
|
1025 | 1025 | attr: 'error_log',
|
1026 | 1026 | value: ['/path/to/error.log', 'syslog:server=localhost'],
|
1027 | 1027 | match: [
|
1028 |
| - ' error_log /path/to/error.log;', |
1029 |
| - ' error_log syslog:server=localhost;' |
| 1028 | + ' error_log /path/to/error.log error;', |
| 1029 | + ' error_log syslog:server=localhost error;' |
1030 | 1030 | ]
|
1031 | 1031 | },
|
1032 | 1032 | {
|
|
0 commit comments