6.0

Table Of Contents
vSphere Web Services SDK Developer’s Setup Guide
28 VMware, Inc.
“HTTP Configuration for ESX 4.1, ESXi 4.1, or ESXi 5.0” on page 29
“HTTP Configuration for vCenter Server on page 30
HTTP Configuration for ESXi 5.1, 5.5, or 6.0
You can modify ESXi configuration from a shell window over an SSH connection, using the following
procedure. If you do not have SSH enabled, use the appropriate vSphere CLI command to obtain the
configuration file from the server, modify the file to support HTTP, and move the file back to the ESXi system.
For more information about the vSphere CLI command syntax, see the vSphere CLI Installation and Reference
Guide.
To modify the Web proxy service on ESXi 5.1, 5.5, or 6.0 to support HTTP
1 Log in to a shell window as the root user.
2 Change directories to /etc/vmware/rhttpproxy.
# cd /etc/vmware/rhttpproxy
3Copy the endpoints.conf file to a temporary directory for editing.
# cp endpoints.conf /tmp/endpoints.conf
4 Change the permissions on the endpoints.conf file to allow editing.
# chmod +w /tmp/endpoints.conf
5 Use a text editor to open the temporary file.
# vi /tmp/endpoints.conf
6 Navigate to the line that specifies the endpoints for SDK connections, which begins with /sdk.
The line looks similar to this:
/sdk local 8307 redirect allow
If the /sdk line ends with the words allow allow, you do not need to change it. HTTP access is
already allowed.
7 To enable HTTP connections, change the word redirect to allow.
When configured to allow both HTTP and HTTPS connections, the /sdk line looks like this:
/sdk local 8307 allow allow
8 (Optional) If you prefer to completely disable HTTPS, change the last word to reject instead of allow.
When configured to allow only HTTP connections, the /sdk line looks like this:
/sdk local 8307 allow reject
9 (Optional) Change the setting for the Managed Object Browser as well.
When configured to allow both HTTP and HTTPS connections, the /mob line looks like this:
/sdk local 8307 allow allow
10 Save your settings and close the file.
11 Copy the original endpoints.conf file to a backup file.
# cp endpoints.conf endpoints.conf.old
12 Change the permissions on the endpoints.conf file to disable editing.
# chmod -w /tmp/endpoints.conf
13 Copy the temporary file endpoints.conf file back, replacing the original endpoints.conf file.
# cp /tmp/endpoints.conf endpoints.conf