How to configure different paths for each web application running in Tomcat?
This was a question that came up in TechLink and I thought that it'd be nice to share the answer with you and also to write it here as a reminder to myself.
All what is necessary is to edit the server.xml to add a Host section per site inside the Engine tag, see an example below:
This was a question that came up in TechLink and I thought that it'd be nice to share the answer with you and also to write it here as a reminder to myself.
All what is necessary is to edit the server.xml to add a Host section per site inside the Engine tag, see an example below:
<!-- Preview host -->
<Host
name="tomcatpreviewdeployer.local"
appBase="C:\workarea\websites\preview\java\deployer"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"
reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="C:\Tridion\log\preview\java"
prefix="tomcatpreview_deployer_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="tomcatpreviewsite.local"
appBase="C:\workarea\websites\preview\java\site"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"
reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="C:\Tridion\log\preview\java"
prefix="tomcatpreview_site_access_log." suffix=".txt"
pattern="%h %l
%u %t "%r" %s %b" />
</Host>
<!-- Live host -->
<Host
name="tomcatlivedeployer.local" appBase="C:\workarea\websites\live\java\deployer"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"
reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="C:\Tridion\log\live\java"
prefix="tomcatlive_deployer_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host
name="tomcatlivesite.local"
appBase="C:\workarea\websites\preview\java\site"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"
reloadable="true"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="C:\Tridion\log\preview\java"
prefix="tomcatlive_site_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
ReplyDeletei preview this blog. Most of the points are very interesting to read. its help me to study also. Thanks for your help.
core java training in chennai
core java training institutes in chennai
core java Training in Velachery
clinical sas training in chennai
Spring Training in Chennai
QTP Training in Chennai
Manual Testing Training in Chennai
JMeter Training in Chennai
Great Article
DeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
The article is so informative. This is more helpful for our
ReplyDeletebest software testing training in chennai
best software testing training institute in chennai with placement
software testing training
courses
software testing training and placement
software testing training online
software testing class
software testing classes in chennai
best software testing courses in chennai
automation testing courses in chennai
Thanks for sharing.
Thanks for sharing an informative blog keep rocking bring more details.I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I am quite sure I will learn much new stuff right here! Good luck for the next!
ReplyDeleteWeb Designing Training Institute in Chennai | web design training center in chennai | web designing course in chennai with placement
Mobile Application Development Courses in chennai
Data Science Training in Chennai | Data Science courses in Chennai
Professional packers and movers in chennai | PDY Packers | Household Goods Shifting
Web Designing Training Institute in Chennai | Web Designing courses in Chennai
Google ads services | Google Ads Management agency
Web Designing Course in Chennai | Web Designing Training in Chennai
Great Article. Thank you for sharing! Really an awesome post for every one.
ReplyDeleteProject Centers in Chennai
JavaScript Training in Chennai
Final Year Project Domains for IT
JavaScript Training in Chennai
I like the helpful info you provide in your articles. I’ll bookmark your weblog and check again here regularly....We are intimating the direct link to know your Sarkari Result Directly. Aspirants can additionally get the complete Data about the Sakari Result likely, result releasing date & Upcoming Sarkari Result All India &When the Official keys & Cut Off Which are released by the Authorities.
ReplyDeleteLovely post... The concepts and the tips given in the post seems to be very much informative and useful.
ReplyDeleteTableau Training in Chennai
Tableau Certification
Oracle DBA Training in Chennai
Advanced Excle Training in Chennai
Graphic Design Courses in Chennai
Unix Training in Chennai
Social Media Marketing Courses in Chennai
Corporate Training in Chennai
Spark Training in Chennai
Pega Training in Chennai
Oracle Training in Chennai
This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.
ReplyDeleteMicrosoft Windows Azure Training | Online Course | Certification in chennai | Microsoft Windows Azure Training | Online Course | Certification in bangalore | Microsoft Windows Azure Training | Online Course | Certification in hyderabad | Microsoft Windows Azure Training | Online Course | Certification in pune
Great Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year Projects for CSE
JavaScript Training in Chennai
JavaScript Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training