Skip to content

Webserv Config Http Core Directives

inticoy edited this page Mar 5, 2024 · 4 revisions

Webserv Config Http Core Directives

Example Configuration


Directives

allow_methods

Syntax: allow_methods ;
Default: 
Context: http, server, location

autoindex

Syntax: autoindex ;
Default: 
Context: http, server, location

client_body_timeout

Syntax: client_body_timeout ;
Default: 
Context: http, server, location

client_header_timeout

Syntax: client_header_timeout ;
Default: 
Context: http, server

client_max_body_size

Syntax: client_max_body_size ;
Default: 
Context: http, server, location

default_type

Syntax: default_type ;
Default: 
Context: http, server, location

error_page

Syntax: error_page ;
Default: 
Context: http, server, location

index

Syntax: index ;
Default: 
Context: http, server, location

keepalive_timeout

Syntax: keepalive_timeout ;
Default: 
Context: http, server, location

root

Syntax: root ;
Default: 
Context: http, server, location

send_timeout

Syntax: send_timeout ;
Default: 
Context: http, server, location

types

Syntax: types ;
Default: 
Context: http, server, location