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) <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 &quot;%r&quot; %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 &quot;%r&quot; %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_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

Reply via email to