Advanced Website Configuration

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.

DNS Configuration

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.

IIS Configuration

Connect to your Sublime server and perform the following steps:

  1. Open the IIS Manager by clicking Start > Administrative Tools > Internet Information Services (IIS) Manager

  2. Expand the Web Sites folder and right-click on the website called Sublime and choose Properties.
    IIS Properties

  3. In the properties dialog, click Advanced…

  4. Click on the Default item in the list and click Edit…

  5. In dialog box, enter code.mycompany.com into the Host Header value textbox. Click OK.
    Website Properties

  6. Click OK on the rest of the dialogs to save your changes.

  7. Open a web browser and browse to http://code.mycompany.com

  8. Go to the Sublime Administration pages and click the Settings tab.

  9. In the Repository Access URL enter http://code.mycompany.com
    URL Chang

  10. 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.