Nginx
Directives API Reference
Nginx configuration directives used to define virtual servers, locations and proxying behavior.
By EZ4Code Team
Directives
Core, http, server and location directives.
server { listen port; server_name name; ... }Defines a virtual server block listening on a port for one or more hostnames.
Returns: void
location [ = | ~ | ~* | ^~ ] uri { ... }Matches request URIs and applies directives within the block; modifiers control match priority.
Returns: void
proxy_pass URL;Forwards the request to an upstream server, optionally inheriting the original URI.
Returns: void
return code [text | URL];Stops processing and returns the given HTTP status code, optionally with text or a redirect URL.
Returns: void
try_files file ... uri | =code;Checks the existence of files in order and serves the first found, otherwise falls back to a URI or code.
Returns: void