Skip to content

Hostnames

Gruxi lets you configure one or more hostnames for each site. This allows a single Gruxi instance to serve multiple websites or applications based on the hostname in the incoming request.

When you configure hostnames for a site, Gruxi routes requests to that site when the incoming hostname matches one of the configured values.

Match all hostnames for a site

To match all hostnames, use the wildcard hostname *.

Canonical Hostname

Gruxi also supports a canonical hostname for each site. This is the preferred hostname that Gruxi uses for that site's content. Defining a canonical hostname helps search engines understand which URL should be treated as authoritative and reduces duplicate content across multiple hostnames.

When a canonical hostname is configured, Gruxi automatically redirects requests from non-canonical hostnames to the canonical hostname using HTTP 308 Permanent Redirect.