Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I set up virtual hosting on Tomcat in standalone mode?

0
Posted

How do I set up virtual hosting on Tomcat in standalone mode?

0

Location: http://www.jguru.com/faq/view.jsp?EID=250357 Created: Nov 9, 2000 Modified: 2000-12-07 20:16:35.321 Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Alex Chaffee PREMIUM (http://www.jguru.com/guru/viewbio.jsp?EID=3 In Tomcat 3.2b6, it is very easy to setup virtual hosts in standalone mode. First, be sure to set the correct port for the HTTP listener (the default is 8080, and you’ll probably want to change it to 80). Second, wrap your servlet context definitions (in your server.xml) with a tag, specifying the domain name to work on. Here is an exerpt from a server.xml that is configured for virtual hosting:

-->

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123