Answer the question
In order to leave comments, you need to log in
How to point a domain to an Apache Tomcat application?
Good time,
I have several applications deployed, the path is:
1. /opt/tomcat/webapps/prilog1
2. /opt/tomcat/webapps/prilog2
<Host name="site1.ru" appBase="prilog1" unpackWARs="true" autoDeploy="true">
<Alias>site1.ru</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="project_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="site2.ru" appBase="prilog2" unpackWARs="true" autoDeploy="true">
<Alias>site2.ru</Alias>
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="project_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
Answer the question
In order to leave comments, you need to log in
You also need to raise the http server.
For example: Nginx proxy for Apache Tomcat
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question