功能说明
为了自适应各种浏览器和不同分辨率的设备,lighttp推荐用户使用简洁的响应式错误页面。
403
出现HTTP 403,一般是由于服务器的权限配置,让用户无权访问当前页面。
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>HTTP 403</title> <meta name="keywords" content="HTTP 403" /> <meta name="description" content="HTTP 403" /> </head> <body> <h1>HTTP 403</h1> <p>You don't have permission to access the URL on this server.</p> <hr /> <p>Powered by Lighttp</p> </body> </html>
404
遇到HTTP 404,一般是服务器相应的文件被删除或更名导致。
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>HTTP 404</title> <meta name="keywords" content="HTTP 404" /> <meta name="description" content="HTTP 404" /> </head> <body> <h1>HTTP 404</h1> <p>The requested URL was not found on this server. </p> <hr /> <p>Powered by Lighttp</p> </body> </html>
服务器默认页面
用户还没有上传文件到lighttp引擎内的默认缺省页面。文件名一般为 default.html
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>此网站暂停服务</title> <meta name="keywords" content="此网站暂停服务" /> <meta name="description" content="此网站暂停服务" /> </head> <body> <h1>此网站暂停服务</h1> <p>此网站由于技术原因暂停服务中,将在维护完成后自动恢复,请耐心等待。</p> <hr /> <p>Powered by Lighttp</p> </body> </html>