Finally got it working. Thanks to those that helped. <Host name="localhost" appBase="webapps/error" unpackWARs="true" autoDeploy="true">
<Host name="www.masterserver2.raknet.com" appBase="webapps/masterserver2" unpackWARs="true" autoDeploy="true"> <Alias>masterserver2.raknet.com</Alias> <Alias>milestone.masterserver2.raknet.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="masterserver2.raknet.com_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> <Host name="www.lobby3.raknet.com" appBase="webapps/lobby3" unpackWARs="true" autoDeploy="true"> <Alias>lobby3.raknet.com</Alias> <Alias>milestone.lobby3.raknet.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="lobby3.raknet.com_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> On Sun, Mar 31, 2013 at 1:32 PM, Kevin Jenkins <rak...@jenkinssoftware.com>wrote: > Thanks but I had already tried variations on the URL in Host name that > before posting. Right now it's going to defaultHost (currently set to > masterserver2.raknet.com) even though I enter http://lobby3.raknet.com/ in > my webbrowser > > <Engine name="Catalina" defaultHost="localhost"> > <Host name="localhost" appBase="webapps/masterserver2" unpackWARs="true" > autoDeploy="true"> > <Host name="masterserver2.raknet.com" appBase="webapps/masterserver2" > unpackWARs="true" autoDeploy="true"/> > <Host name="lobby3.raknet.com" appBase="webapps/lobby3" unpackWARs="true" > autoDeploy="true"/> > <Host name="milestone.masterserver2.raknet.com" > appBase="webapps/masterserver2" unpackWARs="true" autoDeploy="true"/> > <Host name="milestone.lobby3.raknet.com" appBase="webapps/lobby3" > unpackWARs="true" autoDeploy="true"/> > > Right now I just have an A record DNS pointing to the server IP address. > Do I need to set some other kind of setting than the above change to > server.xml? > > > On Sun, Mar 31, 2013 at 11:13 AM, Mark Thomas <ma...@apache.org> wrote: > >> On 31/03/2013 18:50, Kevin Jenkins wrote: >> > I'm trying to setup name based hosts by editing server.xml. >> > http://masterserver2.raknet.com/ should display a different page than >> > http://lobby3.raknet.com/ <http://masterserver2.raknet.com/> >> > >> > The DNS entries are already setup. However, no matter what URL I put, it >> > just goes to the localhost page (error) >> > >> > <Engine name="Catalina" defaultHost="localhost"> >> > <Host name="localhost" appBase="webapps/error" unpackWARs="true" >> > autoDeploy="true"> >> > <Host name="masterserver2" appBase="webapps/masterserver2" >> > unpackWARs="true" autoDeploy="true"/> >> >> You need to use the full DNS name for the name attribute of the host. >> I.e.: >> >> <Host name="masterserver2.raknet.com" ... >> >> Mark >> >> > <Host name="lobby3" appBase="webapps/lobby3" unpackWARs="true" >> > autoDeploy="true"/> >> > <Host name="milestone.masterserver2" appBase="webapps/masterserver2" >> > unpackWARs="true" autoDeploy="true"/> >> > <Host name="milestone.lobby3" appBase="webapps/lobby3" unpackWARs="true" >> > autoDeploy="true"/> >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >