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_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

Reply via email to