nginx配置thinkphp5
nginx,php,tp框架版本: nginx版本: [root@z_centos nginx]# /usr/local/nginx/sbin/nginx -h nginx version: nginx/1.13.9 tp5版本: thinkphp 5.0.18 PHP版本: [root@z_centos nginx]# php -v PHP 7.2.3 (cli) (built: Mar 8 2018 14:43:32) ( ZTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.3, Copyright (c) 1999-2018, by Zend Technologies usr/locol/nginx/conf/vhost/www.xxxx.com.conf 配置文件 主配置文件中使用 include ./vhost/*.conf; 引入即可 https 443端口配置项: server { listen 443 ssl; server_name www.xxxx.com; set $root /usr/local/nginx/webroot/tp5/public; ssl