Php 在Apache2.4中使用pathinfo时存在一个难以解决的问题

Php 在Apache2.4中使用pathinfo时存在一个难以解决的问题,php,apache,rewrite,pathinfo,Php,Apache,Rewrite,Pathinfo,我在centos中部署了httpd(2.4)+php5.6(FastCGI模式)+mysql playform 我安装了thinkphp,但是pathinfo有一些错误 我的配置如下: 1.httpd.conf中的配置: LoadModule rewrite_module modules/mod_rewrite.so remove comment 2.httpd-vhost.conf中的配置: <VirtualHost *:80> DocumentRoot "/var/www" S

我在centos中部署了httpd(2.4)+php5.6(FastCGI模式)+mysql playform

我安装了thinkphp,但是pathinfo有一些错误

我的配置如下:

1.httpd.conf中的配置:

LoadModule rewrite_module modules/mod_rewrite.so remove comment
2.httpd-vhost.conf中的配置:

<VirtualHost *:80>
DocumentRoot "/var/www"
ServerName 192.168.79.130
ProxyRequests Off
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/$1
<Directory "/var/www">
    Options none
    AllowOverride All
    Require all granted
</Directory>
5.重新启动apache 在地址栏中

您没有在此服务器上访问/index.php/index/test的权限

在地址栏中输入后将正确显示

那么如何才能使它在输入后正确显示呢

 <IfModule mod_rewrite.c>


      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]

</IfModule>
'URL_MODEL'=>2