首页 > 试题广场 >

nginx 配置如下,访问mytest.com 时,从...

[单选题]
nginx 配置如下,访问mytest.com 时,从浏览器里看到的输出是?
server
{
    listen 80;
    server_name mytest.com;
    root /usr/local/www/;

    add_header Content-Type 'text/html; charset=utf-8';
    location /
    {
        set $a 1;
        echo $a;
        set $a 2;
        echo $a;
        set $a 3;
        echo $a;
        set $a 4;
        echo $a;
    }
}
  • 1234
  • 1111
  • 4444
  • 4321

这道题你会答吗?花几分钟告诉大家答案吧!