Setting Access to AccuRev Servers

By default, the host machine running the Tomcat web server maps to a single machine running the AccuRev Server. You provide users with access to AccuRev by providing them with the URL to the Tomcat web server. See Setting Up End Users for more information.

If you want, you can specify additional host machine-AccuRev Server mappings to provide access to AccuRev from the AccuRev Web UI. This allows you to:

You might want to specify alternate mappings to allow for the use of domain names for the host server URL, for example.

The <serverMap> Element

AccuRev Server mappings are specified using the <serverMap> element in the wui_config.xml file:

<serverMap>
  <serverMapEntry host = "host_name:port" accurevServer = "server:port"/>
</serverMap>  

where:

host_name:port
URL used to access the machine on which the Tomcat web server is running, and the port on which Tomcat web server is listening. The default Tomcat web server port is 8080.
server:port
URL of the machine on which the AccuRev Server is running, and the port on which AccuRev is listening. The default AccuRev Server port is 5050.

Examples of host_name values include:

  • The DNS for the server.
  • localhost
  • The machine name.

Example

The following example shows how the <serverMap> element in the wui_config.xml file is used to specify alternate host mappings to the same AccuRev Server:

<serverMap>
  <serverMapEntry host = "accurev-web:8080" 
           accurevServer = "accurev.ent.org:5050"/>
  <serverMapEntry host = "accurev-web.ent.org:8080" 
           accurevServer = "accurev.ent.org:5050"/>
</serverMap>