On Fri, Feb 28, 2020 at 10:22:21PM +0800, 2535191782 wrote:

Hi there,

> In nginx.conf:http{
> 
> 
> }
> http{
> 
> 
> }
> can be allowed?

It seems fairly easy to check.

$ sbin/nginx -t
nginx: [emerg] "http" directive is duplicate in 
/usr/local/nginx/conf/nginx.conf:8
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

So - no.

Is there a reason why you might want that? Perhaps the thing that you
want to achieve can be done some other way?

Cheers,

        f
-- 
Francis Daly        [email protected]
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to