5.2

Table Of Contents
26 vFabric Web Server
26
Creating and Using vFabric Web
Server Instances
Procedure
1. Log in to your Windows computer as the Administrator user and start a PowerShell window by going to Start >
All Programs > Accessories > Windows PowerShell, then right-clicking on Windows PowerShell and selecting Run as
Administrator.
2. Change to the bin subdirectory of the root directory for the vFabric Web Server instance.
For example, if you created an instance called myserver that lives in the installation directory c:\opt\vmware
\vfabric-web-server:
PS prompt> cd c:\opt\vmware\vfabric-web-server\myserver\bin
3. Install the instance as a Windows service by running the httpdctl.ps1 install command:
PS prompt> .\httpdctl.ps1 install
Subsequently use the Windows Services console or the sc command to start, stop, and restart the vFabric Web Server
instance. Its properties are as follows:
Service Name: vFabrichttpdinstance-name. Example: vFabrichttpdmyserver
Display Name: vFabric httpd instance-name. Example: vFabric httpd myserver
Also use the Windows Services control panel or sc command to configure whether the service starts automatically when
Windows starts, and so on.
4. To test that the vFabric Web Server instance actually started, navigate to the http://host:port URL in your browser,
where host is the host computer (you can use localhost if your browser is on the same computer), and port is the
HTTP port number you provided when you created the instance. The default value on Windows is 80.
For example, if you are using the default ports on your local computer, use this URL:
http://localhost:80
If the vFabric Web Server instance started successfully, you should see the Welcome page.
5. To get status about a running vFabric Web Server instance, execute the following command:
PS prompt> .\httpdctl.ps1 status
6. To uninstall the vFabric Web Server instance as a Windows service, use the following command:
PS prompt> cd c:\opt\vmware\vfabric-web-server\myserver\bin
PS prompt> .\httpdctl.ps1 uninstall
See httpdctl Reference for the full list of available httpdctl commands.
What to do next
Complete the procedure in Serve a Sample HTML File from your vFabric Web Server Instance.
Configure your instance as described in Configuring vFabric Web Server.
httpdctl Reference
Use the httpdctl script to control a vFabric Web Server instance: start 'n' stop it, install it as a service, and so on. The script is
located in the bin directory of the instance directory, such as /opt/vmware/vfabric-web-server/myserver/bin.
The httpdctl script format depends on your operating system: