php及apache rewrite调试

有效调试手段
xdebug
debug_backtrace
get_included_files

apache rewrite重写调试
apache 虚拟站点
LogLevel alert rewrite:trace3


刘超 2020/6/4 18:55:51
本地不支持 http://api.syhuo.net/oauth2/access_token.json
只支持 http://api.syhuo.net/oauth2/access_token
原因:Yaf解析出的action不对。


管理账号创建
注册商户号、重新分配角色Manager


#api.syhuo.net
<VirtualHost *:80>
    DocumentRoot "E:\telpo\syhuo.api"
    ServerName api.syhuo.net
    #LogLevel alert rewrite:trace3
    ErrorLog "F:/data/httpd/localhost.api.syhuo.net-error.log"
    CustomLog "F:/data/httpd/localhost.api.syhuo.net-access.log" common
  <Directory "E:\telpo\syhuo.api">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  </Directory>
</VirtualHost>


grep -n -i ‘rewrite‘  F:\data\httpd\localhost.api.syhuo.net-error.log


相关推荐