HTTP Configuration for Web Services API Endpoint
You can modify the Web Services API endpoint configuration to accept HTTP connections, in addition to or instead of HTTPS connections.
This procedure applies to version 5.5 or later ESXi, vCenter Server Appliance, or vCenter Server for Windows.
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 to support HTTP on ESXi or vCenter Server for Windows
1
Log in to a shell window or File Explorer with root or administrator privileges.
2
The location differs, depending on the platform.
For ESXi:
/etc/vmware/rhttpproxy
For vCenter Server for Windows:
C:\Program Data\VMware\vCenterServer\cfg\vmware-rhttpproxy\endpoints.conf.d
3
Copy the endpoints.conf file to a temporary directory for editing.
On ESXi:
# cp endpoints.conf /tmp/endpoints.conf
4
Change the permissions on the temporary endpoints.conf file to allow editing.
On ESXi:
# chmod +w /tmp/endpoints.conf
5
On ESXi:
# vi /tmp/endpoints.conf
6
The line looks similar to this:
/sdk    local    8085               redirect     allow
7
When configured to allow both HTTP and HTTPS connections, the /sdk line looks similar to this:
/sdk    local    8085               allow     allow
8
When configured to allow only HTTP connections, the /sdk line looks similar to this:
/sdk    local    8085               allow     reject
9
When configured to allow both HTTP and HTTPS connections, the /mob line looks similar to this:
/mob    local    8085               allow     allow
10
11
On ESXi:
# chmod -w /tmp/endpoints.conf
12
Copy the original endpoints.conf file to a backup file.
On ESXi:
# cp endpoints.conf endpoints.conf.old
13
Copy the temporary file endpoints.conf file back, replacing the original endpoints.conf file.
On ESXi:
# cp /tmp/endpoints.conf endpoints.conf
14
/etc/init.d/rhttpproxy restart
From the Windows menu, choose Control Panel > Administrative Tools > Services, right click the rhttpproxy service, and choose Restart.
Example: An endpoints.conf File Modified To Support HTTP connections to the SDK and the MOB
/ local 8309                       redirect allow
/sdk local 8307                       allow allow
/client/clients.xml local 8309                       allow allow
/ui local 8308                       redirect allow
/vpxa local 8089                       reject allow
/mob namedpipe       /var/run/vmware/proxy-mob allow allow
/wsman local 8889                       redirect allow
/sdkTunnel namedpipetunnel /var/run/vmware/proxy-sdk-tunnel allow reject
/ha-nfc local 12001                       allow allow
/nfc local 12000                       allow allow
/folder local 8309                       redirect allow
/host local 8309                       redirect allow
/tmp local 8309                       redirect allow
/screen local 8309                       redirect allow
/guestFile local 8309                       redirect allow
/cgi-bin local 8309                       redirect allow
 
To modify the Web proxy service to support HTTP on vCenter Server Appliance
1
2
For vCenter Server Appliance:
cd /etc/vmware-rhttpproxy/endpoints.conf.d
3
Copy the endpoints.conf file to a temporary directory for editing.
On vCenter Server Appliance:
# cp vpxd-rhttpproxy-endpoint.conf /tmp/vpxd-rhttpproxy-endpoint.conf
4
Change the permissions on the temporary vpxd-rhttpproxy-endpoint.conf file to allow editing.
On vCenter Server Appliance:
# chmod +w /tmp/vpxd-rhttpproxy-endpoint.conf
5
On vCenter Server Appliance:
# vi /tmp/vpxd-rhttpproxy-endpoint.conf
6
The line looks similar to this:
/sdk    local    8085               redirect     allow
7
When configured to allow both HTTP and HTTPS connections, the /sdk line looks similar to this:
/sdk    local    8085               allow     allow
8
When configured to allow only HTTP connections, the /sdk line looks similar to this:
/sdk    local    8085               allow     reject
9
When configured to allow both HTTP and HTTPS connections, the /mob line looks similar to this:
/mob    local    8085               allow     allow
10
11
On vCenter Server Appliance:
# chmod -w /tmp/vpxd-rhttpproxy-endpoint.conf
12
Copy the original endpoints.conf file to a backup file.
On vCenter Server Appliance:
# cp vpxd-rhttpproxy-endpoint.conf vpxd-rhttpproxy-endpoint.conf.old
13
Copy the temporary file endpoints.conf file back, replacing the original endpoints.conf file.
On vCenter Server Appliance:
# cp /tmp/vpxd-rhttpproxy-endpoint.conf vpxd-rhttpproxy-endpoint.conf
14
/etc/init.d/vmware-rhttpproxy restart
For an example of the contents of a vpxd-rhttpproxy-endpoint.conf file modified to support HTTP connections, see An endpoints.conf File Modified To Support HTTP connections to the SDK and the MOB.