Its a kind of magic ... ;-)
Two week ago, I changed my host file to :
192.168.0.43 grim host.docker.internal
No changes in dspmqweb, even after a restart.
Yesterday I restarted my server, and now dspmqweb gives me :
URLS:
https://grim.mshome.net:9443/ibmmq/console/https://grim.mshome.net:9443/ibmmq/rest/Not perfect (.mshome.net ???) but much better.
So it looks like Windows needs to be restarted to pickup host file changes.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr------------------------------
Original Message:
Sent: Thu April 15, 2021 01:24 AM
From: om prakash
Subject: MQConsole hostname
How about adding the host entry as
192.168.0.43 grim host.docker.internal
------------------------------
om prakash
WI
Original Message:
Sent: Wed April 14, 2021 03:24 AM
From: Luc-Michel Demey
Subject: MQConsole hostname
Hello,
On my Windows workstation, here is the configuration:
mqwebuser.xml file:
<variable name="httpHost" value="grim"/>
Hosts file:
192.168.0.43 grim
# Added by Docker Desktop
192.168.0.43 host.docker.internal
192.168.0.43 gateway.docker.internal
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
Result of a dspmqweb :
URLS:
https://host.docker.internal:9443/ibmmq/console/
https://host.docker.internal:9443/ibmmq/rest/
If I contact https://grim:9443/ibmmq/console, I got MQ console.
There must be a way to display the "correct" hostname in the dspmqweb, but I haven't found it.
Who has an idea?
Thanks for your help.
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
Original Message:
Sent: Tue April 13, 2021 03:12 PM
From: om prakash
Subject: MQConsole hostname
The value you add to the Key, that is displayed. You can have multiple hostname/alias names.
------------------------------
om prakash
WI
Original Message:
Sent: Tue April 13, 2021 10:23 AM
From: Luc-Michel Demey
Subject: MQConsole hostname
Yes, it should. But apparently only if there is an unique hostname known by the server.
I the server have more than one host name, one is taken (at random ?). How to control this ?
------------------------------
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
Original Message:
Sent: Tue April 13, 2021 09:59 AM
From: om prakash
Subject: MQConsole hostname
In the mqwebuser.xml file uncomment and hostname
<variable name="httpHost" value="your preferred host name"/>
It should work.
------------------------------
om prakash
WI
Original Message:
Sent: Mon April 12, 2021 10:41 AM
From: Luc-Michel Demey
Subject: MQConsole hostname
When setting up MQ Console, the host name of the server is provided via setmqweb, and this name is found in the mqwebuser.xml file, u httpHost variable.
The dspmqweb command allows you to obtain the URLs of the console and the REST server. But these URLs do not necessarily take the value of httpHost. I often get localhost or the ip address of the server, or one of the names in the host file. Examples :
https://localhost:9443/ibmmq/console/
https://host.docker.internal:9443/ibmmq/console
How to get the value of httpHost in the URL provided by dspmqweb?
Thanks!
------------------------------
--
Luc-Michel Demey
DEMEY CONSULTING
lmd@demey-consulting.fr
------------------------------