简体   繁体   English

Apache 服务器 - 服务器离线时显示页面

[英]Apache server - show page while server is offline

Since my server is running off my personal laptop, it has quite a lot of down time.由于我的服务器正在运行我的个人笔记本电脑,因此它有很多停机时间。 Is it possible to have a page that shows up when someone tries to access the site while the server is offline?当服务器离线时有人尝试访问该站点时,是否可以显示一个页面?

Yes, with another server.是的,使用另一台服务器。 You can't show pages without server.没有服务器就无法显示页面。

If your server is unreachable, then the user browser shows a default page that explains that your server is unreachable...如果您的服务器无法访问,则用户浏览器会显示一个默认页面,说明您的服务器无法访问...

With an external service (external server) it is possible.使用外部服务(外部服务器)是可能的。 A lot of ways to do it.有很多方法可以做到。 Look for solutions about load balancing for example.例如,寻找有关load balancing解决方案。

But only with apache on your laptop, I think it is impossible.但只有在你的笔记本电脑上安装 apache,我认为这是不可能的。

Try superuser.com, you'll certainly get more answers about your problem.试试 superuser.com,你肯定会得到更多关于你的问题的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM