-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Frank,

On 12/4/18 11:55, Frank Schullerer wrote:
> After searching the web many many times and reading all this here,
> it seems that there is no real good solution for this.
What exactly is "this"? What problem are you having that needs a
solution, and what is "not good" about the solutions you've been
presented with?

- -chris

> Am Di., 4. Dez. 2018 um 17:45 Uhr schrieb Christopher Schultz < 
> ch...@christopherschultz.net>:
> 
> Frank,
> 
> On 12/4/18 06:09, Frank Schullerer wrote:
>>>> Thanks!
>>>> 
>>>> Ok let me know if I can achive things in a better way. Now I
>>>> have a server.xml like this:
>>>> 
>>>> <Server port="8005" shutdown="SHUTDOWN"> <Listener ...
>>>> <Service name="Catalina"> <Connector port="8080" ... <Engine
>>>> name="Catalina" defaultHost="localhost"> <Realm ..
>>>> 
>>>> <Host name="localhost"  appBase="webapps" ... </Engine>
>>>> </Service>
>>>> 
>>>> <Service name="a"> <Connector port="11111"
>>>> clientAuth="false" keyAlias="aaaaaaaa"  /> <Engine name="a" >
>>>> <Realm ... <Host name="host1" appBase="services/a" > </Host>
>>>> </Engine> </Service> <Service name="b"> <Connector
>>>> port="222222" clientAuth="true" keyAlias="bbbbbbbb"  />
>>>> <Engine name="b" > <Realm ... <Host name="host2"
>>>> appBase="services/b" > </Host> </Engine> </Service> <Service
>>>> name="c"> <Connector port="333333" clientAuth="true" 
>>>> keyAlias="ccccccc"  /> <Engine name="c" > <Realm ... <Host 
>>>> name="host3" appBase="services/c" > </Host> </Engine>
>>>> </Service>
>>>> 
>>>> Please note that we need different ports and different 
>>>> configurations (like clientAuth or keyAlias) for the
>>>> applications. If there is a better way and have a tomcat
>>>> manager to deploy all applications, please let me know!
>>>> 
>>>> Thank you in advance!
> 
> As Mark said, you will need to deploy the Tomcat manager 4 times
> for the above configuration.
> 
> -chris
> 
>>>> Am Di., 4. Dez. 2018 um 11:53 Uhr schrieb Mark Thomas 
>>>> <ma...@apache.org>:
>>>> 
>>>>> On 04/12/2018 10:19, Frank Schullerer wrote:
>>>>>> Hello,
>>>>>> 
>>>>>> I think this question is independent from the tomcat
>>>>>> version but I tried
>>>>> it
>>>>>> with Tomcat 9.0.13 on Windows. We have several "service"
>>>>>> tags in our server.xml because we have several
>>>>>> applications running in one tomcat with several ports and
>>>>>> different configuration (clientAuth etc). I tried to use
>>>>>> the tomcat manager to deploy to different services but it
>>>>>> failed. It seems that the tomcat manager can only deploy
>>>>>> within the same service because when I deploy the tomcat
>>>>>> manager itself to a different service than it works. I
>>>>>> can deploy to that service.
>>>>>> 
>>>>>> Is this correct or can I configure the tomcat manager to
>>>>>> deploy to other services? I also tried to achive that
>>>>>> with a configuration with "context.xml" but failed.
>>>>>> 
>>>>>> Please help!
>>>>> 
>>>>> TL;DR you can't deploy services that way.
>>>>> 
>>>>> The Tomcat Manager application only works with the Host to
>>>>> which it has been deployed.
>>>>> 
>>>>> In Tomcat: - There is exactly one Server - A Server may
>>>>> contain 0 or more Services - A Service may contain 0 or
>>>>> more Connectors and no more than one Engine - An Engine may
>>>>> contain 0 or more Hosts - A host may contain 0 or more
>>>>> Contexts (Context == web application)
>>>>> 
>>>>> (I left a few things like Valves and Executors out to keep
>>>>> it simple)
>>>>> 
>>>>> 
>>>>> The Tomcat Host Manager application only works with the
>>>>> Engine associated with the Host to which it has been
>>>>> deployed.
>>>>> 
>>>>> Mark
>>>>> 
>>>>> ------------------------------------------------------------------
- ---
>>>>>
>>>>>
>
>>>>> 
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: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIyBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwH8GMACgkQHPApP6U8
pFhBhg/4kb3VWlmGJ246fSuWMw4Y581heIIzsNzxPcTIppIc586mSItulaunKPEB
VkOqWVHjIotwLlh18wTufd3U4R4MyOn8OK44wAMaSjJPGKwNQgKyD2CwoQ3sdJJJ
SpYlmWOcCoqkVCQ+Di4I7Wa2KuMvp/waccMnMdJ+osJ7RJsflqeho9NkCy8489NB
C7CSHHBvQaiPn2i8iMROKG2u7piY9JqZTK87k6O+cuzZxzQ91en5OhapuCZzUzsx
Thle+aDUhWfaoeyd31UYuRZTUm3/ptFlqrd8Lpr3W2UbR4rKqfQHA7hZD2axD3Kf
qM9N6npkFG1iI+zyMygbWZ2HHIMnSbc3Ij/aU2I2b0sNiE+mZAflX0Lvhi0Ecvlw
YPh4qiKUQik7H1Web5Ruuows9DiI3oxiQhmBso/GEcbyc7vRg/KdQUwnvJ0/s5hT
6V7+5yg8NeAprg3Mf62Cjj/ehXZm9/HSM6FuwJ0YpKxg0hoDyJCYppCVxBq6FZWO
9Sk9qxHXw4vVKLVTigLT4UyJ4aIi+kgxG5nOPIsK0xsGaraPxfC4byQrWdph3zrx
P9n6wfnRdPN76r9fFFGeN/s7nEv5PaHN38P5zbErH7em+YI12hrYd966DW3MMZUT
ALRdXyn9iUf2v6yVG7SpGOFsVTpOGMoffzGgGeVmFMpAxzyAXA==
=K45B
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to