-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Laurie,
On 8/9/18 8:31 AM, Laurie Miller-Cook wrote: > Hi there > > Sorry for the confusion. > > We have two servers with multiple hosts on. East host has it's own > Host entry in Server.xml due to using a wildcard SSL certificate > > At the bottom of the email I used the details of the prod server > ondemand.com and below I applied the Alias to different server, > which I can test and reboot without the need of an outage window. > > I entered the Alias line in the test.lbpondemand.com host, then > Stopped and Started Tomcat. I then tested access to ever one of > the hosts (using the host name in IE) and everyone came back with > "This page can't be displayed" > > I remove the alias line, stopped and started tomcat and I still > received the "this page can't be displayed". I had to reboot the > server for the hosts to be accessible again. > > To resolve the issue, I entered the Alias line and rebooted the > server and the changes took effect and all the hosts worked. > > Do you have any idea why the stop\Start of Tomcat would cause an > issue whereas the Reboot of the Server worked ok? > > The error logs did not show anything different between when the > hosts failed on a restart of Tomcat and when I rebooted the whole > server. There is no reason I can think of that rebooting would be necessary. Tomcat does not persist anything across restarts except possibly user-sessions. - -chris > -----Original Message----- From: André Warnier (tomcat) > <a...@ice-sa.com> Sent: Wednesday, August 08, 2018 7:34 PM To: > users@tomcat.apache.org Subject: Re: Domain name change in Tomcat > > Hi. It is getting a bit confused and confusing here : - the latest > configuration that you indicate below, does not match the previous > one which you indicated previously (see even further below). - you > are talking about "broke every site" (implying several "sites"). > What do you mean exactly by "site" ? the "<Host ..>" tags which you > list below (without the Alias) seem to point to a single "site" (if > by "site" you mean one hostname). - you also do not really "broke > every site". What URL were you trying to use, when *your browser* > responded with "this page cannot be displayed" ? - did you look at > the tomcat logfiles, when you got the error ? Maybe it provides > some useful clue. - about >> <Alias>companytest.lbpondemand.com</Alias> > : is that hostname registered in the DNS ? (in other words : can > you do "ping companytest.lbpondemand.com", and what does that > respond ?) > > All in all, that makes it a bit hard to guess what you mean and > how we could help. > > > On 08.08.2018 17:39, Laurie Miller-Cook wrote: >> Hi there >> >> I tried entering an Alias, like so >> >> <Host name="test.lbpondemand.com" appBase="test_webapps" >> unpackWARs="true" autoDeploy="true"> >> <Alias>companytest.lbpondemand.com</Alias> <Valve >> className="org.apache.catalina.valves.AccessLogValve" >> directory="logs" prefix="Test_access_log" suffix=".txt" >> pattern="%h %l %u %t "%r" %s %b" /> >> >> >> But this broke every site I had on the server, I got "This page >> can't be displayed" >> >> I had to remove the Alias line and the reboot the server to get >> things working again. >> >> Any ideas? >> >> Laurie -----Original Message----- From: Igor Cicimov >> <icici...@gmail.com> Sent: Tuesday, August 07, 2018 11:49 PM To: >> Tomcat Users List <users@tomcat.apache.org> Subject: Re: Domain >> name change in Tomcat >> >> On Wed, 8 Aug 2018 1:52 am Laurie Miller-Cook < >> laurie.miller-c...@larmerbrown.com> wrote: >> >>> Hi there, >>> >>> I have an issue where I need to either change the URL of a >>> Website in Tomcat. >>> >>> The current URL is https://training.ondemand.com and this >>> needs to be changed to https://wbt.ondemand.com (we have a >>> wildcard SSL certificate) >>> >>> In my server.xml I have the following >>> >>> <Host name="training.ondemand.com" appBase="training_webapps" >>> unpackWARs="true" autoDeploy="true"> <Valve >>> className="org.apache.catalina.valves.AccessLogValve" >>> directory="logs" prefix="Training_access_log" suffix=".txt" >>> pattern="%h %l %u %t "%r" %s %b" /> </Host> >>> >>> >>> Can I change the host name to wbt.ondemand.com and everything >>> will still work or as I expect am I going to have to build a >>> new site from scratch? >>> >>> All the best >>> >>> Laurie >>> >> >> Just use Alias inside the Host >> https://tomcat.apache.org/tomcat-7.0-doc/config/host.html#Host_Name_A l >> >> >> iases >> >>> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltsfLgACgkQHPApP6U8 pFioHw/7BfD/yaZDNWnGl1FpAUgOPYiPrlei5xSM5slGnzTQQtfgU6GUTUUuB1bZ MSDSlvVxx6uY3bH94Gc4bajVgmAca6X3Da9OdNTq14tvRFloP+162zHogHQrmBQk O/GjtT/vnFrminnkCsayVThnBNktacBQ7to5fn753wQD02IkZv4ofBd4j79lMEWM 4xVAEer/Dj9Es5Mm9+eniYyxj/oLh/PbhmuDXmwQhJm4gHZQZTT9eMh2w7x16o/A 1MciaJdXjx9L5hgBg+kwhLDPzZldzJko9ay6EE0PqsPhpErWxJ8yYuws5XynaKBW knYmSoaNoOmaMlUw2o4htbtMm17TK2ZTwT6mK/v3bVnBGU2cunlaAlJ3d/xKjLho ZPG/+3N1WwsM2Rm2oUOqBHOVXn2CHGzUI9VloWPqAKfzk3q3tuI/89JGaAVpa/rm yxe52RnnRWYQgIUQDDfr6M9N9LSjPlx+2qYvbX4lSp7vL0+o4hHL2leglTxVFhnG fOKGT71hPp/AaHeJldRMoepX1n5VRfsOYmPTA7R1sKsOUoOB1bf4gFWwYf7yBiSD t/SejQpEApaRC+zp/U9JkfeKuwltDBT4DS3yiZ85uiYWNjnvh312ouHEIPX2d+Hi 9qJtKYV1vwMdVfTWtnyGpSBHNmkkfEXVVa82RxuTm3f6bYnIg60= =nBGp -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org