We earn commission when you buy through affiliate links.
This does not influence our reviews or recommendations.Learn more.
What is Virtual Host and How to Configure in WebSphere app Server (WAS)?
One of the very first terminologies you will hear in WAS Deployment is a virtual host.
Many of you asked me about the virtual host and configuration guide so here I have explained the following.
So, what is a Virtual host?
This can be either IP-based or name-based.
A virtual host configuration is done through WAS administrative console.
Using a virtual host, you could also define the MIME types.
Lets take a look at below illustration of a virtual host.
So now you know about the virtual host and next is tocreate & configure it.
Virtual host creation is done through WAS administrative console, located under Environment » Virtual hosts.
So now you have a new virtual host and its time toconfigureit.
MIME Types: here you’ve got the option to add/create/modify MIME types for your system.
This default list is created when you create any virtual host.
Here is how you could change the virtual host for any software.
You might be interested to know the virtual host configuration is stored invirtualhosts.xml.
punch Review and it will show you the path of virtualhosts where it will save the configuration.
Lets take a look at the error carefully.
There are two things you got to look which I highlighted in red color.
So quick fix is to add localhost in your virtual host.
This could be also when you have multiple virtual host and program is mapped to an incorrect virtual host.
So you got to review the configuration and ensure the localhost exists in the requested virtual host.
Last section of this article Best practices of using Virtual Hostin WAS environment.
Every utility is unique and one configuration may not work well in others.
However, there are some rules you may follow which has helped me, and hopefully you too.
I hope you have a better understanding of Virtual Host in IBM WebSphere utility Server now.
thats all for today and I hope you like it.
If you are looking to learn WAS administration then you may check out thisUdemy course.