I changed the http and https number into 8080 and 8043. And then I restarted it.
But the browser can't connect to the new port number. I checked if the old port is still be used but the browser can't connect to the old port.
I am working if firewall ports needs to be opened.
Here is the config.xml
<!-- RhttpProxy configuration file for ESX/ESXi -->
<config>
<!-- the version of this config file -->
<version>5.5.0.0</version>
<!-- working directory -->
<workingDir>/var/log/vmware/</workingDir>
<!-- location to examine for configuration files that are needed -->
<defaultConfigPath> /etc/vmware/ </defaultConfigPath>
<log>
<!-- controls where rolling log files are stored -->
<directory>/var/log/vmware/</directory>
<!-- name of log file -->
<name>rhttpproxy</name>
<!-- controls whether logger sends its output to console also -->
<outputToConsole>false</outputToConsole>
<!-- If true, log to files on disk -->
<outputToFiles>false</outputToFiles>
<!-- default size(in bytes) of each log file before rolling over to next -->
<maxFileSize>524288</maxFileSize>
<!-- default number of log files to rotate amongst -->
<maxFileNum>8</maxFileNum>
<!-- default log level -->
<level>verbose</level>
<!-- If true, logs to syslog -->
<outputToSyslog>true</outputToSyslog>
<!-- syslog configuration. Only used if outputToSyslog is true. -->
<syslog>
<!-- syslog identifier to use when logging -->
<ident>Rhttpproxy</ident>
<!-- syslog facility to use when logging -->
<facility>local4</facility>
<!-- The section header contents are placed in this file at startup.
When vmsyslogd rotates the hostd log file, it logs the content of this
file to syslog. This is being done so that we don't lose context on log
rotations.
IMPORTANT: Value needs to match that in onrotate entry in
vmsyslog.d/hostd.conf
-->
<logHeaderFile>/var/run/vmware/rhttpproxyLogHeader.txt</logHeaderFile>
</syslog>
</log>
<proxy>
<!-- default location of the proxy config file -->
<endpoints>/etc/vmware/rhttpproxy/endpoints.conf</endpoints>
<!-- HTTP port to be used by the reverse proxy -->
<httpPort>8080</httpPort>
<!-- HTTPS port to be used by the reverse proxy -->
<httpsPort>8043</httpsPort>
</proxy>
<!-- Remove the following node to disable SSL -->
<ssl>
<!-- The server private key file -->
<privateKey>/etc/vmware/ssl/rui.key</privateKey>
<!-- The server side certificate file -->
<certificate>/etc/vmware/ssl/rui.crt</certificate>
<!-- Client-side CAFile verify location -->
<keyStoreFile>/etc/vmware/ssl/castore.pem</keyStoreFile>
</ssl>
<vmacore>
<pluginBaseDir>/lib/</pluginBaseDir>
<!-- default thread pool configuration for Posix impl -->
<threadPool>
<IoMin>2</IoMin>
<IoMax>44</IoMax>
<TaskMin>2</TaskMin>
<TaskMax>18</TaskMax>
<!-- Do not set MaxFdsPerThread if hostdMinFds is set above -->
<!-- MaxFdsPerThread> 2048 </MaxFdsPerThread -->
<NumKeepAlive>8</NumKeepAlive>
<ThreadCheckTimeSecs>600</ThreadCheckTimeSecs>
<ThreadStackSizeKb>256</ThreadStackSizeKb>
<threadNamePrefix>rhttpproxy</threadNamePrefix>
</threadPool>
<rootPasswdExpiration>false</rootPasswdExpiration>
<ssl>
<doVersionCheck> false </doVersionCheck>
<!-- allowed SSL/TLS protocol versions -->
<!-- <protocols>tls1.0,tls1.1,tls1.2</protocols> -->
<libraryPath>/lib/</libraryPath>
</ssl>
<!-- enable plugin loading -->
<loadPlugins> false </loadPlugins>
<!-- enable/disable the dynamic loading of plugins -->
<loadDynamicPlugins> false </loadDynamicPlugins>
<!-- Enable/disable the stack tracer -->
<!-- <useStackTracer>false</useStackTracer> -->
<xml>
<doc>
<!-- maximum size of each XML message. -->
<maxChars>62914560</maxChars>
<!-- maximum nodes in of each XML message. -->
<maxNodes>524288</maxNodes>
<!-- maximum node depth of each XML message. -->
<maxDepth>1000</maxDepth>
</doc>
</xml>
<http>
<!-- Num of max proxy connections -->
<!-- PR 604415: Temporary lower the connections limit to 128 -->
<maxConnections> 128 </maxConnections>
</http>
</vmacore>
</config>