我正在迁移服务器,而我的旧虚拟主机配置就像这样
....
$tokenArray = $client->fetchAccessTokenWithAssertion();
$accessToken = $tokenArray["access_token"];
$serviceRequest = new DefaultServiceRequest($accessToken);
ServiceRequestFactory::setInstance($serviceRequest);
$spreadsheetService = new Google\Spreadsheet\SpreadsheetService();
$tokenArray = $client->fetchAccessTokenWithAssertion();
$accessToken = $tokenArray["access_token"];
$serviceRequest = new DefaultServiceRequest($accessToken);
ServiceRequestFactory::setInstance($serviceRequest);
$spreadsheetService = new Google\Spreadsheet\SpreadsheetService();
$spreadsheetFeed = $spreadsheetService->getSpreadsheets();
$spreadsheet = $spreadsheetFeed->getByTitle('MySpreadsheet');
$worksheetFeed = $spreadsheet->getWorksheets();
$worksheet = $worksheetFeed->getByTitle('Sheet 1');
$listFeed = $worksheet->getListFeed();
foreach ($listFeed->getEntries() as $entry) {
$values = $entry->getValues();
$array [] = $values;
}
它传递给Tomcat,但是!指令被忽略了。没有抛出任何错误。可能导致这种情况的原因是什么?
答案 0 :(得分:1)
如果/images
规则匹配,但路径无效,例如无法找到,Apache将尝试下一个规则。
仅当所有其他规则都失败时,才会使用第一个匹配的规则(并显示相应的错误,例如404而不是代理错误)。