Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
982 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...