ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/wsavhost.htm

42 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Use wsadmin to administer virtual hosts</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="wsavhost"></a>Use wsadmin to administer virtual hosts</h4>
<p>A virtual host is a configuration entity that allows WebSphere Application Server - Express to treat multiple host names, IP addresses, or port numbers as a single logical host. For more information, see <a href="vhosts.htm">Virtual hosts</a>.</p>
<p>To configure virtual hosts with wsadmin, follow these steps:</p>
<ol>
<li><p>On the CL command line, run the STRQSH (Start Qshell) command.</p></li>
<li><p>Run the cd command to change to the directory that contains the wsadmin tool:</p>
<pre>cd /QIBM/ProdData/WebASE/ASE5/bin</pre></li>
<li><p><a href="wsarun.htm#start">Start wsadmin</a>.</p></li>
<li><p>At the wsadmin prompt, run this command to identify the cell and assign it to the cell variable:</p>
<pre>set cell [$AdminConfig getid /Cell:<em>myCell</em>]</pre>
<p>where <em>myCell</em> is the name of your application server cell.</li>
<li><p>Run this command to to create a new virtual host:</p>
<pre>$AdminConfig create VirtualHost $cell {{name <em>newVHost</em>}}</pre>
<p>where <em>newVHost</em> is the name of the new virtual host.</p></li>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>