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>
3.Web ディレクトリの構成:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>
4. config.php の設定:
'URL_MODEL'=>2
5.アドレスバーでApache「http://localhost/index.php/Index/test 」を再起動し、
このサーバーの /index.php/Index/test にアクセスする権限がありません。
アドレスバーに「 http://localhost/index.php?s=Index/test 」と入力すると正常に表示されます。
では、「 http://localhost/index.php/Index/test」と入力した後に正しく表示するにはどうすればよいですか