\begin{Verbatim}[commandchars=\\\{\}] \PYGZsh{} Default server configuration server \PYGZob{} listen 80 default\PYGZus{}server; listen [::]:80 default\PYGZus{}server; root /var/www/my\PYGZhy{}wiki; \PYGZsh{} Add index.php to the list if you are using PHP index index.html index.htm index.nginx\PYGZhy{}debian.html index.php; server\PYGZus{}name lotr.wiki; location / \PYGZob{} \PYGZsh{} First attempt to serve request as file, then \PYGZsh{} as directory, then fall back to displaying a 404. try\PYGZus{}files \PYGZdl{}uri \PYGZdl{}uri/ =404; \PYGZcb{} \PYGZsh{} pass PHP scripts to FastCGI server location \PYGZti{} \PYGZbs{}.php\PYGZdl{} \PYGZob{} include snippets/fastcgi\PYGZhy{}php.conf; \PYGZsh{} With php\PYGZhy{}fpm (or other unix sockets): fastcgi\PYGZus{}pass unix:/run/php/php\PYGZhy{}fpm.sock; \PYGZsh{} With php\PYGZhy{}cgi (or other tcp sockets): \PYGZcb{} \PYGZcb{} \end{Verbatim}