service.prerender.io giving 503 service unavailable
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- apache
- 领域
- devops
调研方向
Start with the posted .htaccess and reproduce the failure using curl with the twitterbot user agent. Inspect the rewrite, proxy, and request-header conditions involved in forwarding to service.prerender.io; done means the request no longer returns a 503 response.
由索引模型根据 Issue 内容生成。
描述
I've been testing prerender from curl and other social media platforms. Curl gives a 503 error. This is my .htaccess
<IfModule mod_headers.c>
RequestHeader set X-Prerender-Token "MY_TOKEN"
RequestHeader set X-Prerender-Version "prerender-apache@2.0.0"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# -- REDIRECTION to https (optional):
# If you need this, uncomment the next two commands
# RewriteCond %{HTTPS} !on
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# --
<IfModule mod_proxy_http.c>
RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\$
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteCond %{REQUEST_URI} ^(?!.*?(\.js|\.woff2|\.json|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3$
RewriteRule ^(index\.html|index\.php)?(.*) https://service.prerender.io/https://mydomain.co/$2 [P,END]
</IfModule>
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) index.html [NC,L]
</IfModule>
Executing curl -A "twitterbot" https://mydomain.com gives me the next response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>
- 主要语言
- 没有语言数据
- 星标
- 10
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prerender/prerender-apache 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
prerender/prerender-apache#3 · 4 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 35/100
prerender/prerender-apache#2 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 20/100
prerender/prerender-apache#1 · 3 条评论 ·
查看 prerender/prerender-apache 的全部 Issue
相似的 Issue
-
kb-infra-drift
难度 2/5 1-3 小时 新手友好度 70/100
OCHA-DAP/ds-knowledge-base#653 · 1 条评论 ·
-
intake mcp-intake needs-ac needs-human-review priority:medium type:feature
难度 2/5 1-3 小时 新手友好度 75/100
Ikalus1988/MisakaNet#2102 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
llvm/lighthouse#283 ·
-
🤔 refinement needed
难度 2/5 1-3 小时 新手友好度 75/100
equinor/radix-operator#1979 ·
-
难度 1/5 1 小时以内 新手友好度 85/100