reload_fails

预期 Nginx 配置重载(HUP 信号)会失败的测试。

语法

--- reload_fails 段用于配合 use_hup() 模式。在 HUP 重载模式下,当某个测试块的配置预期会导致重载失败时使用。

perl
1=== TEST 1: invalid config on reload
2--- config
3 location /t {
4 invalid_directive_here;
5 }
6--- reload_fails
7--- error_log
8"invalid_directive_here" directive is not allowed