Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

embedded osgi - WebSphere Liberty 20.0.0.12 , defaultHttpEndpoint doesn't bind to dns alias name

I've got some trouble connecting to the http://(url):(port)/osgi/http website with the dns alias name (c-name)=(${defaultHostName}). It works or fallsback with the default systemhostname (a-record), but it keep giving 404 if i try to use the c-name and isn't working with the "*" either.

I'm using:

   <virtualHost id="default_host">
     <hostAlias>${defaultHostName}:${infra.http.port}</hostAlias>
     <hostAlias>${defaultHostName}:${infra.https.port}</hostAlias>
   </virtualHost>

<httpEndpoint id="defaultHttpEndpoint" host="${defaultHostName}" httpPort="${infra.http.port}" httpsPort="${infra.https.port}"> <tcpOptions soReuseAddr="true" />
</httpEndpoint>
I CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host (systemhostname) (ip) (port)
.....
¨ CWWKT0016I: Web application available (default_host): http://(defaultHostName):(port)/osgi/http/

Are there some issue with binding to a c-name instead of the a-record ? Some advice how to troubleshoot is appreciated. Thanks in advance. Best regard.

question from:https://stackoverflow.com/questions/65937631/websphere-liberty-20-0-0-12-defaulthttpendpoint-doesnt-bind-to-dns-alias-name

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...