ceu-notes/2/IAW/assignments/t5-ej2-mediawiki/_minted-t5-ej2-mediawiki-naortega/FACECD1614A25279171AFF7C75B290932799BB5901EAB1C9B2FCD147119F2BF7.pygtex

30 lines
1002 B
Plaintext

\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}