国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Nginx > 正文

nginx下配置thinkphp文件的方法

2024-08-30 12:28:28
字體:
來源:轉載
供稿:網友

在上篇文章給大家介紹了在Nginx上部署ThinkPHP項目教程,今天給大家介紹nginx下thinkphp的配置,具體詳解如下:

## domain redirect#if ($host != "my.ruanzhuangyun.cn"){#  rewrite ^/(.*)$ http://my.ruanzhuangyun.cn/$1 permanent;#}## domain redirect## tp pathinfolocation /data/www/tp.360ruanzhuang/ {  index index.php;  if (!-e $request_filename) {    rewrite ^/data/www/tp.360ruanzhuang/(.*)$ /data/www/tp.360ruanzhuang/index.php/$1 last;    break;  }}location ~ .+/.php($|/) {  set $script $uri;  set $path_info "/";  if ($uri ~ "^(.+/.php)(/.+)") {    set $script   $1;    set $path_info $2;  }  fastcgi_pass 127.0.0.1:9000;  fastcgi_index index.php?IF_REWRITE=1;  include fastcgi_params;  fastcgi_param PATH_INFO $path_info;  fastcgi_param SCRIPT_FILENAME $document_root/$script;  fastcgi_param SCRIPT_NAME $script;}## pathinfo end ## index.php hiddenlocation / { if (!-e $request_filename) {  rewrite ^(.*)$ /index.php?s=$1 last;  break;  }}## index.php hidden}

以上所述是小編給大家介紹的nginx下配置thinkphp文件的方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對VEVB武林網網站的支持!


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 乐至县| 砚山县| 大关县| 昌乐县| 兰州市| 昌宁县| 理塘县| 阿拉善盟| 襄垣县| 永春县| 玉田县| 淮滨县| 美姑县| 兰西县| 贵南县| 康马县| 张家界市| 资源县| 东宁县| 通渭县| 旌德县| 张掖市| 荔波县| 安吉县| 中卫市| 松阳县| 安岳县| 龙州县| 新丰县| 洛扎县| 新源县| 比如县| 赤水市| 汕尾市| 郑州市| 龙岩市| 翁源县| 陆河县| 内乡县| 浦北县| 通许县|