아파치 Root 디렉토리 변경
vi /etc/apache2/sites-enabled/000-default.conf
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html
DocumentRoot /var/lib/tomcat9/webapps/ROOT/
#JkMount /* tomcat1
JkMount /*.jsp tomcat1
JkMount /*.json tomcat1
JkMount /*.xml tomcat1
JkMount /*.do tomcat1
아파치 시작페이지 변경
웹브라우저 에서 localhost, apache ip주소 입력 시 보여주는 index.html파일을 sansane.html 로변경
vi /etc/apache2/mods-available/dir.conf
<IfModule mod_dir.c>
#DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
DirectoryIndex sansane.html
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
톰캣 welcome-file 변경
아파치 -> 톰캣 으로 연동이 안되어있거나 바로 톰캣에 접속시
표시되는 시작페이지 변경
vi /var/lib/tomcat9/conf/web.xml
<welcome-file-list>
<welcome-file>sansane.html</welcome-file>
# <welcome-file>index.html</welcome-file>
# <welcome-file>index.htm</welcome-file>
# <welcome-file>index.jsp</welcome-file>
</welcome-file-list>
적용이 완료되려면 Restart 필수
service apache2 stop
service apache2 start
service tomcat9 stop
service tomcat9 start
* Restart로 하니깐 반영이 안되서 stop, start 해줌