By default, the URL for Sublime server will be based on the server name (either http://<servername> or http://<servername>/Sublime). However, you may want a friendly URL like http://sublime or http://code.mycompany.com. This guide describes how to do this.
For the purpose of this walkthrough, we will assume that you want to use http://code.mycompany.com as your friendly URL. Anywhere you see http://code.mycompany.com you can substitute your friendly URL.
The first step is to create an entry in your DNS server. You need to point http://code.mycompany.com to the IP address of your Sublime server.
Since there are many different ways to configure DNS, this guide does not go into the specific steps to implement this.
Connect to your Sublime server and perform the following steps:
Open the IIS Manager by clicking Start > Administrative Tools > Internet Information Services (IIS) Manager
Expand the Web Sites folder and right-click on the website called Sublime and choose Properties.
In the properties dialog, click Advanced…
Click on the Default item in the list and click Edit…
In dialog box, enter code.mycompany.com into the Host Header value textbox. Click OK.
Click OK on the rest of the dialogs to save your changes.
Open a web browser and browse to http://code.mycompany.com
Go to the Sublime Administration pages and click the Settings tab.
In the Repository Access URL enter http://code.mycompany.com
Click Save Changes
From this point on, users will access the Sublime web interface by browsing to http://code.mycompany.com. Repositories will be accessed from svn://code.mycompany.com. If your users have been using repositories at the old URL, they will need to perform the relocate command to update the URL for their working copies.