背景:老项目,升级TP6,更好服务器,发现url 必须自带index.php
xampp最新版本

要区分http? https请求
一顿操作~~然鹅,没有解决了~~

?配置conf??
配置
Listen 443 SSLPassPhraseDialog ?builtin SSLSessionCacheTimeout ?300
####定义每个单独的网站########################################################################### <VirtualHost _default_:443> DocumentRoot "XXXXXX\public\index.php" ServerName testapi.krber.com:443 SSLEngine on #加密套件如下(万网提供) SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!tNULL:!NULL:!FH:!EDH:!EXP:+MEDIUM SSLHonorCipherOrder on # 证书公钥配置 SSLCertificateFile "" # 证书私钥配置 SSLCertificateKeyFile "" # 证书链配置 SSLCertificateChainFile "" <Directory "XXXXXX\public">? Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> </VirtualHost>?
?
最后发现https 配置中,可以将访问的目录,结尾加上index.php?
神器的可以了~~
分析:可能thinkphp中配置的.htaccess文件,不能区分https吧,没有深入研究
<IfModule mod_rewrite.c> ? Options +FollowSymlinks -Multiviews ? RewriteEngine On
? RewriteCond %{REQUEST_FILENAME} !-d ? RewriteCond %{REQUEST_FILENAME} !-f ? RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
|