修改tomcat默认主页
修改tomcat默认主页
修改tomcat安装目录下bin/server.xml配置文件<host>标签
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
在<host>标签下加<Context>标签
<Context path="" docBase="项目名" reloadable="true" debug="0" privileged="true"></Context >
具体如下
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="项目名" reloadable="true" debug="0" privileged="true"></Context >
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
这样重启后再次访问就会默认访问你配置的项目。
如何配置默认访问的页面呢?
修改tomcat安装目录下bin/web.xml配置文件<welcome-file-list>标签,把你默认的页面名称配置在第一位。
<welcome-file-list>
<welcome-file>默认页面.html</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
评论区
请写下您的评论...
猜你喜欢
weblog
992
mysql修改主键id自动递的增初始值修改方法:执行sqlaltertable表名AUTO_INCREMENT=初始值;例:altertableusersAUTO_INCREMENT=10000;
blog
rabbitmq开启http安全认证插件
rabbitmq
827
-pluginsenablerabbitmq_auth_backend_http......前面带[E*]的代表已启用二、修改配置文件rabbitmq的配置文件默认在/etc/rabbitmq/rabbitmq.conf,如果没有这个文件,则需要自己手动创建这个文件。修改
nginx
2129
超过60秒(默认)没有活动的套接字,并将其断开连接。
解决方法
一、修改nginx代理超时时间
时间根据实际需求配置,单位秒
proxy_read_timeout86400s;
proxy_send_
blog
c#获取和设置默认浏览器的版本号
工具
2802
publicstaticstringGetDetailVersion(stringtext){//通过WebBrowser方案获取版本号//intmainVer=(newWebBrowser()).Version.Major;//通过注册表获取用户IE版本号RegistryKeymainKey=Registry.LocalMachine;RegistryKeysubKey=mainKey.Open
spring/springmvc
1323
springboot打包成war包放tomcat运行一、pom文件把jar修改war:packagingwar/packaging二、去除springboot内置的
blog
springboot整合redis数据库
框架
2379
/artical/210安装完数据库以后如果不是本地连接记得修改密码requirepass。默认是没有密码需要后台运行修改daemonizeyes默认是noyml配置文件spring:redis:host:
框架
3400
ribbon的默认负载均衡是轮询策略,会进行无差别的分配。ribbon有七种负载均衡模式RoundRobinRule:默认规则,通过简单的轮询服务列表来选择服务器
linux系统
1734
/etc/sysconfig/network-scripts/ifcfg-ens33修改:BOOTPROTO="static"#修改为静态,默认为dhcp添加IP地址IPADDR、子网掩码NETMASK、
最新发表
归档
2018-11
12
2018-12
33
2019-01
28
2019-02
28
2019-03
32
2019-04
27
2019-05
33
2019-06
6
2019-07
12
2019-08
12
2019-09
21
2019-10
8
2019-11
15
2019-12
25
2020-01
9
2020-02
5
2020-03
16
2020-04
4
2020-06
1
2020-07
7
2020-08
13
2020-09
9
2020-10
5
2020-12
3
2021-01
1
2021-02
5
2021-03
7
2021-04
4
2021-05
4
2021-06
1
2021-07
7
2021-08
2
2021-09
8
2021-10
9
2021-11
16
2021-12
14
2022-01
7
2022-05
1
2022-08
3
2022-09
2
2022-10
2
2022-12
5
2023-01
3
2023-02
1
2023-03
4
2023-04
2
2023-06
3
2023-07
4
2023-08
1
2023-10
1
2024-02
1
2024-03
1
标签
算法基础
linux
前端
c++
数据结构
框架
数据库
计算机基础
储备知识
java基础
ASM
其他
深入理解java虚拟机
nginx
git
消息中间件
搜索
maven
redis
docker
dubbo
vue
导入导出
软件使用
idea插件
协议
无聊的知识
jenkins
springboot
mqtt协议
keepalived
minio
mysql
ensp
网络基础
xxl-job
rabbitmq
haproxy
srs
音视频
webrtc
javascript
目录
没有一个冬天不可逾越,没有一个春天不会来临。最慢的步伐不是跬步,而是徘徊,最快的脚步不是冲刺,而是坚持。