Skip to content

Configuration file

Daniel-Alessandros Atack edited this page Jun 6, 2022 · 57 revisions

Syntax

Tables Arguments Scope Purpose
server_name = string ; server Setup the name of the server which determine which block is used for a given request
host = string ; server Setup the host of the server, i.e: 127.0.0.1
port = int ; server Setup the port listened by the server
index = string ... ; server, location
root string ; server, location Setup the root path
error_pages int ... = string server, location Setup the error pages
read_timeout = int ; server
client_header_size = int ; server
server_body_size = int ; server
body_max_size = int ; server
methods = string ... ; location Setup a list of HTTP methods accepted by the location
rewrite string string ; location Setup an HTTP redirection
auto_index bool ; location Setup directory listing
cgi_enable bool ; location Whether the use of CGI is enable
cgi_extension = string ... ; location For which file extensions CGI is enabled
cgi_timeout = int ; location
send_file bool ; location
file_limit = int ; location

Clone this wiki locally