当反向代理不可用时,切诺基可以服务回退/默认页面吗? [英] Can Cherokee serve a fallback/default page when a reverse proxy is unavailable?

查看:122
本文介绍了当反向代理不可用时,切诺基可以服务回退/默认页面吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Cherokee安装程序,用于服务一些Web应用程序-一个博客/日历/等.和两个占用大量CPU的Web应用程序(1个稳定版和1个开发版).它们都是与CherryPy一起提供的Django或Pylons Web服务.我在切罗基语中使用反向代理处理程序来处理映射.

I have a Cherokee installation that I'm using to serve a few web applications - one blog/calendar/etc. and two CPU-intensive web applications (1 stable version and 1 development version). All of them are Django or Pylons webservices served with CherryPy. I'm using the reverse-proxy handler in Cherokee to handle the mappings.

有时,我必须删除开发版本以进行更改.有没有一种方法可以设置切诺基,以便在反向代理目标无法确定或无法响应时自动将其服务(或重定向到)另一页(例如,指示正在建设中的状态)?

Occasionally I have to take the development version down to make changes. Is there a way to set up Cherokee so that it will automatically serve (or redirect to) another page (e.g. indicating an under-construction status) when the reverse-proxy target is unfindable or unresponsive?

我更喜欢切诺基的自动化解决方案,但如果有人知道简单的点击方法,我也会采用.

I'd prefer an automated solution in Cherokee but if someone knows a simple point-and-click method I'll take that too.

推荐答案

您可以设置自定义504错误页面.

You could set a custom 504 error page.

这篇关于当反向代理不可用时,切诺基可以服务回退/默认页面吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆