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

Reply via email to