0

I am wondering what the http block does in Nginx. I don't see many tutorials talking about when it is necessary to use that block, and many examples do not use it at all.

1 Answer 1

4

The http block is required for any nginx configuration that is intended to act as a HTTP(S) server. It often isn't included in examples, because most people use nginx for HTTP(S) service, however if you're using nginx to proxy (for example) IMAP/POP3, you don't need a http block.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .