简体   繁体   中英

Host configuration in server.xml doesn't work in tomcat 8.0.33

Our host configuration in server.xml works well in Tomcat 7.0.62 but not in 8.0.33.

<Host name="www.projet-okinawa.ch" appBase="/okinawa/web/apache-tomcat-x.y.z/webapps/okinawa">
  <Context path="" docBase="."/>
</Host>

This allow us to access the web site by using the url http://www.projet-okinawa.ch that is redirected to https://www.projet-okinawa.ch:8443 .

With 8.0.33 version that doesn't work, we got an http 404 error. Any idea what the problem is ? What the difference is ?

In the follow way, it's working...

    <Host name="mysite.it"  appBase="webapps" unpackWARs="true" autoDeploy="true">
        <Alias>www.mysite.it</Alias>

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="mysite_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" />
        <Context path="" docBase="/opt/tomcat/webapps/MySite" reloadable="true"/>
    </Host>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM