摘要: 配置优先级说明: linux 系统会先检查/etc/hosts.deny规则,再检查/etc/hosts.allow规则,如果有冲突 按/etc/hosts.allow规则处理 1、添加允许访问信息(该配置优先生效) vim /etc/hosts.allow #配置/etc/hosts.allow文 阅读全文
posted @ 2022-08-23 21:29 李朋_Wechat 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 当我们访问tomcat的一个不存在的页面,返回错误信息如下: 这样的界面直接暴露给用户并不友好,有时候还不安全,因此一般需要修改默认的错误页。 vim /$TOMCAT_HOME/conf/web.xml 在文件末尾,</web-app>的前面,加上以下内容: <error-page> <error 阅读全文
posted @ 2022-08-23 21:13 李朋_Wechat 阅读(171) 评论(0) 推荐(0) 编辑