如图所示,使用http://pan.altjc.gov.cn/api/v3/directory/ 可以访问,使用http://pan.altjc.gov.cn/api/v3/directory%2F 则无法访问,导致首页登陆后看不到文件,请修复。
服务器server2016 datacenter php5.4.45 vhosts.conf内容
DocumentRoot "/www/myapp/public" <Directory "/www/myapp/public"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> ServerName pan.altjc.gov.cn ProxyPreserveHost On Proxyrequests off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8888/ ProxyPassReverse / http://localhost:8888/ </VirtualHost>
【已解决】产生这个现象的原因是因为apache没有识别到encode后的url,修改为以下即可
DocumentRoot "/www/myapp/public" <Directory "/www/myapp/public"> Options -Indexes -FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> ServerName pan.altjc.gov.cn ProxyPreserveHost On Proxyrequests off <Proxy *> Order deny,allow Allow from all </Proxy> AllowEncodedSlashes On ProxyPass / http://localhost:8888/ ProxyPassReverse / http://localhost:8888/ </VirtualHost>