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.
1
■ 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
■ On vCenter Server for Windows, right click the file in File Explorer and select Properties to change file permissions.
■ On ESXi:
# vi /tmp/endpoints.conf
7 When configured to allow both HTTP and HTTPS connections, the /sdk line looks similar to this:
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 similar to this:When configured to allow both HTTP and HTTPS connections, the /mob line looks similar to this:
■
■ On vCenter Server for Windows, right click the file in File Explorer and select Properties to change file permissions.
12 Copy the original endpoints.conf file to a backup file.
■
13
■
■ From the Windows menu, choose Control Panel > Administrative Tools > Services, right click the rhttpproxy service, and choose Restart.
1 Log in to a shell window with root privileges.
■ 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
■ On vCenter Server Appliance:
# vi /tmp/vpxd-rhttpproxy-endpoint.conf
7 When configured to allow both HTTP and HTTPS connections, the /sdk line looks similar to this:
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 similar to this:When configured to allow both HTTP and HTTPS connections, the /mob line looks similar to this:
■
12 Copy the original endpoints.conf file to a backup file.
■
13
■ 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.