Multi-domain Configuration tomcat

Source: Internet
Author: User

<context path= "" docbase= "D:\web\ftp\fgame-1.0"  reloadable= "true" crosscontext= "true"        privileged= "true "                unpackwar=" true "          cachingallowed=" true "          cachemaxsize=" "1024x768"  />

Change to:
<engine name= "Catalina" defaulthost= "shop.finwod.com" >

Or

<engine name= "Catalina" defaulthost= "localhost" >      
Place the context file in the shop.finwod.com and fgame.finwod.com folders under%tomcat%\conf\catalina

<context path= "" docbase= "D:\web\ftp\fgame-1.0"  reloadable= "true" crosscontext= "true"        privileged= "true "                unpackwar=" true "          cachingallowed=" true "          cachemaxsize=" "1024x768"  />

<connector port= "8080" maxhttpheadersize= "8192" maxthreads= "minsparethreads=" 75 "maxsparethreads="    Enablelookups= "false"    redirectport= "8443" acceptcount= "connectiontimeout=" 20000 "    
Maxthreads:tomcat uses threads to process each request that is received. This value represents the maximum number of threads that Tomcat can create.
Acceptcount: Specifies the number of requests that can be placed in the processing queue when all the threads that can be used to process the request are used, and requests that exceed this number will not be processed.
Connnectiontimeout: Network connection time-out, unit: milliseconds. Set to 0 to never time out, so the setting is hidden. It can usually be set to 30000 milliseconds.
Minsparethreads:tomcat the number of threads created when initializing.
Maxsparethreads: Once a thread is created that exceeds this value, Tomcat shuts down the socket thread that is no longer needed

Multi-domain Configuration tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.