specify v4 addresses (java dual-stack requires an OS which allows v4 connections
on v6 sockets)

Index: conf/server.xml
--- conf/server.xml.orig
+++ conf/server.xml
@@ -69,6 +69,7 @@
          Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
     -->
     <Connector port="8080" protocol="HTTP/1.1"
+               address="0.0.0.0"
                connectionTimeout="20000"
                redirectPort="8443"
                maxParameterCount="1000"
@@ -76,6 +77,7 @@
     <!-- A "Connector" using the shared thread pool-->
     <!--
     <Connector executor="tomcatThreadPool"
+               address="0.0.0.0"
                port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
                redirectPort="8443"
@@ -91,6 +93,7 @@
     -->
     <!--
     <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
+               address="0.0.0.0"
                maxThreads="150" SSLEnabled="true"
                maxParameterCount="1000"
                >
@@ -108,6 +111,7 @@
     -->
     <!--
     <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
+               address="0.0.0.0"
                maxThreads="150" SSLEnabled="true"
                maxParameterCount="1000"
                >
@@ -124,7 +128,7 @@
     <!-- Define an AJP 1.3 Connector on port 8009 -->
     <!--
     <Connector protocol="AJP/1.3"
-               address="::1"
+               address="127.0.0.1"
                port="8009"
                redirectPort="8443"
                maxParameterCount="1000"
@@ -160,7 +164,7 @@
                resourceName="UserDatabase"/>
       </Realm>
 
-      <Host name="localhost"  appBase="webapps"
+      <Host name="localhost"  appBase="${CATALINA_BASE}/webapps"
             unpackWARs="true" autoDeploy="true">
 
         <!-- SingleSignOn valve, share authentication between web applications
