[英]Redirecting ampproject URL to original site while implementing amp update-cache
I'm trying to implement amp update cache, but facing issue while accessing "apikey.pub" amp-project URL. 我正在尝试实施amp更新缓存,但是在访问“ apikey.pub” amp项目的URL时遇到问题。
https://www-example-in.cdn.ampproject.org/c/s/www.example.in/.well-known/amphtml/apikey.pub
redirecting to 重定向到
www.example.in/.well-known/amphtml/apikey.pub
I also try with 我也尝试
https://www-example-in.cdn.ampproject.org/r/s/www.example.in/.well-known/amphtml/apikey.pub
it's show error: 显示错误:
The requested URL /r/s/www.example.in/.well-known/amphtml/apikey.pub was not found on this server.
I have already put my public key on www.example.in/.well-known/amphtml/apikey.pub
. 我已经将我的公共密钥放在
www.example.in/.well-known/amphtml/apikey.pub
。
Please help me to resolve this issue. 请帮助我解决此问题。
the address ./well-known/amphtml/apikey.pub
is an address on your website to store public key of signiture and must return text/plain header on response. 地址
./well-known/amphtml/apikey.pub
是您网站上用于存储签名公钥的地址,并且必须在响应时返回text / plain标头。 you are try to make it on amp cache server! 您正在尝试使其在安培缓存服务器上!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.