RE: Domain name change in Tomcat
Hi there We have 8 hosts Regards Laurie Miller-Cook dd: +44 (0)1252 607220 e: laurie.miller-c...@larmerbrown.com -Original Message- From: Christopher Schultz Sent: Thursday, August 09, 2018 6:38 PM To: users@tomcat.apache.org Subject: Re: Domain name change in Tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laurie, On 8/7/18 11:51 AM, Laurie Miller-Cook 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 > > unpackWARs="true" autoDeploy="true"> className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="Training_access_log" suffix=".txt" > pattern="%h %l %u %t %r %s %b" /> > > > 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? How many elements do you have in your conf/server.xml? - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltsfAUACgkQHPApP6U8 pFgzgBAAwhXmVuBR3tv/m2w5hZTsUmCqp3TN0R6NdtT+uoHay9arDKgYeMlgLbIH tRzWAuWwwfaWaJMl+f6HhzKEuAYMrwenQZl4ZEi/wAckQQ9QZLuu3aDP//tJehsz ck+QReyUNvZgHJBCZrQas/GHi5D745AzHZfKzwJMX+hDD1MQyzd1jFA5HkRIwHkf +kZ1VluZ732S8cqFFxmiTQhwYGj0cK6hndKXSiXBl6LBSop46LSNtOztNW/ZvH2i QW2CiT7C7HvbUnX9Egfbb37PxeERHDw6UMn05oB/mfHirmfNaZe/X2RA0uZv8fW+ WYTlys3fOYSnIaEK30Qnmh5wOHyffJkh4Ckqibwe0l7UVEX/JnZJWF9wq6/W7eyZ KoYeh3/+/ldilPaK90xPgTry/hVqapD2ygg38+Ca+0q1OVgUWmshZiisni7BcWay XMf8egcZF8lyTvth3KZ1lIaiIjz7PDpVO4HB2va+0eeHrtyEvvQnPm9suRyHRT77 zseQ7uApBV7ULuhghYWsc7hVOn4zWBmlfEbfnsOG2oNjvGCSRUTrbW4Rgqjux6Oi X7iLJC2fP52kNWGKdrsvmpUYJWR6HCMV1KTu8VOejhAO5QwFc48o9znQ1lzWvX0R VpdjzDhAYOgxph0Qri3dNTUctJ0o77ytQ1XiN7gI4oXSR88V/Xs= =UvHV -END PGP SIGNATURE- - 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
Re: Domain name change in Tomcat
-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) > 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 "" 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 >> companytest.lbpondemand.com > : 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 >> >> > unpackWARs="true" autoDeploy="true"> >> companytest.lbpondemand.com > 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 >> Sent: Tuesday, August 07, 2018 11:49 PM To: >> Tomcat Users List 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 >>> >>> >> unpackWARs="true" autoDeploy="true"> >> className="org.apache.catalina.valves.AccessLogValve" >>> directory="logs" prefix="Training_access_log" suffix=".txt" >>> pattern="%h %l %u %t %r %s %b" /> >>> >>> >>> 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 >&
Re: Domain name change in Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Laurie, On 8/7/18 11:51 AM, Laurie Miller-Cook 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 > > unpackWARs="true" autoDeploy="true"> className="org.apache.catalina.valves.AccessLogValve" > directory="logs" prefix="Training_access_log" suffix=".txt" > pattern="%h %l %u %t %r %s %b" /> > > > 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? How many elements do you have in your conf/server.xml? - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAltsfAUACgkQHPApP6U8 pFgzgBAAwhXmVuBR3tv/m2w5hZTsUmCqp3TN0R6NdtT+uoHay9arDKgYeMlgLbIH tRzWAuWwwfaWaJMl+f6HhzKEuAYMrwenQZl4ZEi/wAckQQ9QZLuu3aDP//tJehsz ck+QReyUNvZgHJBCZrQas/GHi5D745AzHZfKzwJMX+hDD1MQyzd1jFA5HkRIwHkf +kZ1VluZ732S8cqFFxmiTQhwYGj0cK6hndKXSiXBl6LBSop46LSNtOztNW/ZvH2i QW2CiT7C7HvbUnX9Egfbb37PxeERHDw6UMn05oB/mfHirmfNaZe/X2RA0uZv8fW+ WYTlys3fOYSnIaEK30Qnmh5wOHyffJkh4Ckqibwe0l7UVEX/JnZJWF9wq6/W7eyZ KoYeh3/+/ldilPaK90xPgTry/hVqapD2ygg38+Ca+0q1OVgUWmshZiisni7BcWay XMf8egcZF8lyTvth3KZ1lIaiIjz7PDpVO4HB2va+0eeHrtyEvvQnPm9suRyHRT77 zseQ7uApBV7ULuhghYWsc7hVOn4zWBmlfEbfnsOG2oNjvGCSRUTrbW4Rgqjux6Oi X7iLJC2fP52kNWGKdrsvmpUYJWR6HCMV1KTu8VOejhAO5QwFc48o9znQ1lzWvX0R VpdjzDhAYOgxph0Qri3dNTUctJ0o77ytQ1XiN7gI4oXSR88V/Xs= =UvHV -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Domain name change in Tomcat
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. Best regards Laurie Miller-Cook e: laurie.miller-c...@larmerbrown.com -Original Message- From: André Warnier (tomcat) 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 "" 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 > companytest.lbpondemand.com : 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 > > unpackWARs="true" autoDeploy="true"> > companytest.lbpondemand.com >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 > Sent: Tuesday, August 07, 2018 11:49 PM > To: Tomcat Users List > 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 >> >> > unpackWARs="true" autoDeploy="true"> >> > className="org.apache.catalina.valves.AccessLogValve" directory="logs" >> prefix="Training_access_log" suffix=".txt" >> pattern="%h %l %u %t %r %s %b" /> >> >> >> >> 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_Al > 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
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 "" 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 >companytest.lbpondemand.com : 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 companytest.lbpondemand.com 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 Sent: Tuesday, August 07, 2018 11:49 PM To: Tomcat Users List 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 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_Aliases - 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
RE: Domain name change in Tomcat
Hi there I tried entering an Alias, like so companytest.lbpondemand.com 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 Sent: Tuesday, August 07, 2018 11:49 PM To: Tomcat Users List 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 > > unpackWARs="true" autoDeploy="true"> > className="org.apache.catalina.valves.AccessLogValve" directory="logs" >prefix="Training_access_log" suffix=".txt" >pattern="%h %l %u %t %r %s %b" /> > > > > 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_Aliases > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
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 > > unpackWARs="true" autoDeploy="true"> > className="org.apache.catalina.valves.AccessLogValve" directory="logs" >prefix="Training_access_log" suffix=".txt" >pattern="%h %l %u %t %r %s %b" /> > > > > 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_Aliases >
Domain name change in Tomcat
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 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