(1)添加站点
(2)配置apache配置文件
在/usr/local/apache/conf/vhost文件夹下,修改webApp站点配置文件app.zouke.com.conf,并配置域名app.zouke.com
(3)配置nginx配置文件
location /{ #ThinkPHP REWRITE支持 if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; #rewrite ^(.*)$ /index.php$1 break; break; } }
(5)重启服务:lnmp restart
(6)访问webApp站点
原文:https://www.cnblogs.com/zouke1220/p/9323176.html