This article has been archived and is no longer updated by Apple.

If requests for the root URL redirect to the Wiki or Xcode services on macOS Server

The Websites service on macOS Server automatically redirects requests for the root URL to the Wiki or Xcode service by default. Learn how to turn off redirects to the Wiki or Xcode service.

If you turn on the Wiki or Xcode services, requests to https://server.example.com automatically redirect to https://server.example.com/wiki or https://server.example.com/xcode.

Turn off redirects

To turn off the Wiki redirect, rename or delete this file:

/Library/Server/Web/Config/apache2/other/COM.APPLE.WEBAPP.WIKI.conf

To turn off the Xcode redirect, rename or delete this file:

/Library/Server/Web/Config/apache2/other/COM.APPLE.WEBAPP.XCODE.conf

After you disable these redirects, you don't need to restart the Websites service. The change takes effect immediately and persists across reboots.

This change is only reset if:

  • the Wiki or Xcode service is turned off and then back on.

  • you update to a newer version of Server app.

  • you reinstall Server app.

Published Date: