Does nginx support multiple http {} blocks?
Francis Daly
francis at daoine.org
Fri Feb 28 14:27:55 UTC 2020
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 francis at daoine.org
More information about the nginx
mailing list