2

该应用程序位于 Google App Engine(Python 2.7、webapp2、HighReplication)上,可以正常使用 HTTPS。

HTTPS 在 app.yaml 中配置为 secure: always 属性,而不是在路由中使用 scheme=['https']。

到目前为止一切正常,如果我执行 "curl -I HTTP ://[MY_URL]" ,答案是:

HTTP/1.1 302 Found
Location: HTTPS://[MY_URL]

这个 302 没问题,因为意味着资源有另一个位置(使用 HTTPS)

但是....当我在“App Engine -> 应用程序设置”上启用PageSpeed时,我有这个错误:

HTTP/1.1 403 Forbidden

我知道什么是 403 错误,但为什么只有在启用 PageSpeed 时才会发生这种情况,我该如何解决?

提前致谢

4

1 回答 1

0

I assume you have not refered the FAQ of google please refer this link this says you need to provide,

  1. You sign up and provide us with your serving and origin servers.
  2. You send traffic to PageSpeed Service by pointing your DNS CNAME entry to pagespeed.googlehosted.com.

Also Python needs to be configured for page speed, refer link PAGESPEED

and its still experimental

and refer this link Find this point "Enabling PageSpeed Optimization Service"

this link says its paid service you need to pay per GB bandwidth, it optimizes your pages automatically!!!

I hope you will work around the problem after this reading links.

If you are not novice user, you do not required this if you are not adding any useless thing to your app's pages.

于 2013-05-08T10:40:47.510 回答