From 3ec7695cc070ac74ff2ba543e0c34cd6ec08ac8e Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Fri, 8 Jan 2021 15:41:37 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index d946167..917cb34 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,27 @@ services: volumes: - '/www:/www' ``` + +# nginx server +``` +server { + listen 80; + listen [::]:80; + + server_name aite.xyz; + + root /www/aite.xyz; + index index.htm index.html index.php default.htm default.html default.php; + + autoindex on; + autoindex_localtime on; + autoindex_exact_size on; + + location ~ \.php$ { + fastcgi_pass php-fpm:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} +```