Solving nginx location configuration problems
给我你的怀抱
给我你的怀抱 2017-05-16 17:16:36
0
1
469

(1)

 if ($fastcgi_script_name ~ "^(.+\.php)(/.+)$"){
    set $path_info ;
 }

(2)

  if ($fastcgi_script_name ~ "^index.php/(.+)$"){
    set $path_info ;
 }

Access address test.com/index.php/oss/index

(1) $2 = /oss/index
(2) $1 does not have any data

(1)(2) I feel the same, but the writing method is different. Why are the results different? ? ? Waiting online

给我你的怀抱
给我你的怀抱

reply all(1)
过去多啦不再A梦

Is there a slash missing before index

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!