Changing path of Xcode Server

You can do this with the OS X Server app.

  1. Open Server.app.

  2. Go to the Websites service.

  3. Double-click your server website in the list.

  4. Click Edit… for Index Files.

  5. Delete /xcode/ from the list.

  6. Click OK on both boxes and wait for the service to update.

Then Xcode will only be accessible from host.name.tld/xcode


First, make sure you are looking at the right apache config. Base OS X includes a config file, but the one used in Server is at /Library/Server/Web/Config/apache2/sites.

The two lines that makes Xcode the default is in 0000_any_80_.conf:

DocumentRoot "/Library/Server/Web/Data/Sites/Default"
DirectoryIndex index.html index.php /xcode/ /wiki/ default.html

That means Apache will look for an index first in /Library/Server/Web/Data/Sites/Default, but if there isn't an index file, it will try to use /xcode/ as the index (and will fall back to the wiki after that).

To override it, all you need to do is put some content in index.html. After that, you will still be able to access Xcode server in http://host.name.tld/xcode