From 8f5b46100a9c02eedd29cf4a330eddb9676d8a39 Mon Sep 17 00:00:00 2001 From: ww519441258 <310243791.com> Date: Mon, 30 Dec 2019 09:20:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0vhostphp=E9=85=8D?= =?UTF-8?q?=E7=BD=AEdemo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/conf/vhost/phpdefault.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nginx/conf/vhost/phpdefault.conf diff --git a/nginx/conf/vhost/phpdefault.conf b/nginx/conf/vhost/phpdefault.conf new file mode 100644 index 0000000..b777490 --- /dev/null +++ b/nginx/conf/vhost/phpdefault.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name api.antbasic.com; + root /www/Antbasic/api/web; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + fastcgi_pass php:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + access_log /var/log/nginx/access.log; +} +