Skip to content

Instantly share code, notes, and snippets.

@EllieTheYeen
EllieTheYeen / README.md
Last active November 25, 2023 15:53 — forked from logsol/README
Apache - automatically route all subdomains to their related directory

APACHE

How to get "anysubdomain.mydomain.com" automatically routed to a directory?


  1. enable mod_vhost_alias (create symlink in mods-enabled)
  2. create the following vhost configuration file /etc/apache/sites-available/subdomains