← ServerPilot Docs

How to Serve a Subdomain from a Subdirectory

If you need a subdomain to point to the subdirectory of an existing app, complete these three steps:

  1. Create a separate app under the same system user.
  2. Add your subdomain as one of the new app's domain names.
  3. Follow our guide to customize the web root directory of the new app so that it is a symlink to the subdirectory you want to use.

Launch your first site in 5 minutes