S
S
strelkovandrey2017-12-15 15:18:50
tomcat
strelkovandrey, 2017-12-15 15:18:50

How to setup virtual host on Tomcat7?

Good afternoon, there is a virtual machine with RedHat7, on which Tomcat7 is installed.
Draw.io is installed on the tomcat
, everything works fine, i.e. opens at tomcat.mydomain:8080/draw/?https=0
But this is an ugly address, so I want to create a virtual domain, for example draw.mydomain
Therefore, I started creating virtual hosts according to this manual:
https://gist.github.com/esfand /7748566
namely added

<Host name="draw.domain" appBase="draw" autoDeploy="true" unpackWARs="true">
 <Alias>draw.domain</Alias>
 <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"   
                prefix="localhost_access_log." suffix=".txt" 
                pattern="%h %l %u %t "%r" %s %b" resolveHosts="false"/>
 </Host>

Everything seems to be done, the tomcat restarted, but going to draw.domain - nothing opens :/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question