Tomcat domain name configuration in linux, linuxtomcat Domain Name
I. configuration of multiple domain names
1: Change the default port 8080 to port 80, because port 80 is the default webpage port.
ConnectionTimeout = "20000"
RedirectPort = "8443" URIEncoding = "UTF-8"/>
2: copy the following content to/conf/server. xml.
UnpackWARs = "true" autoDeploy = "true">
3: Create a ROOT folder under/home/temobi,
4: copy the content in the temobi project under local tomcat to the/home/temobi/ROOT folder.
5. copy the host-manager folder and manager folder under tomcat/webapps to the/home/temobi folder.
Okay, you're done!
Ii. Single Domain Name Configuration
1: Change the default port 8080 to port 80, because port 80 is the default webpage port.
ConnectionTimeout = "20000"
RedirectPort = "8443" URIEncoding = "UTF-8"/>
2: copy the following content to/conf/server. xml.
UnpackWARs = "true" autoDeploy = "true">
3: delete the contents under tomcat/webapps/ROOT and put the folders in the local project under tomcat/webapps/ROOT.
Okay, you're done!