Keywords: Tomcat - Google Cloud Platform - How to - Domain Name (DNS)
I have 2 webapps run on tomcat and have 2 domains.
I configured the first domain sasfanclub.vn by adding to conf/server.xml:
<Host name="sasfanclub.vn" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="sasfanclub" debug="0" privileged="true" />
<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" />
And it worked, the domain pointed to the right war.
After that, I added the host tag for the second domain. Then restart tomcat.
When I access the server ip, it returns error 503 said that:
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
Were any configurations wrong? What should I do?