Skip to content

What is a Zone?

A zone in smoxy is a reusable configuration that applies to one or more hostnames. Instead of configuring each hostname individually, you attach hostnames to a zone so they all share the same settings for proxy and origin, caching, security, optimization, and routing. For how these settings act on each request — and in which order — see the Request Lifecycle.

The zones overview lists every proxy zone in your organization.The zones overview lists every proxy zone in your organization.
The zones overview lists every proxy zone in your organization.

How Zones Work

  1. Create a zone with your desired settings (caching, security, image optimization, etc.)
  2. Attach hostnames to the zone -- point each hostname's DNS CNAME at smoxy, and incoming requests are handled with the zone's configuration
  3. Manage centrally -- changes to the zone apply to every hostname attached to it

For example, you could attach www.example.com, shop.example.com, and blog.example.com to the same zone. All three hostnames would share identical caching, security, and optimization settings.

The Create Zone dialog: a zone name and an environment tag.The Create Zone dialog: a zone name and an environment tag.
The Create Zone dialog: a zone name and an environment tag.

What You Can Configure

A zone controls every aspect of how smoxy handles traffic for its attached hostnames:

FeatureWhat It DoesLearn More
Proxy / OriginWhere smoxy sends traffic -- a single server or a pool of servers -- plus custom headers and log forwardingProxy
CachingHow long content is cached, cache key composition, cache tags, stale cache behavior, dynamic (HTML) cachingCache
OptimizationAutomatic image compression, WebP/AVIF conversion, quality settings per formatOptimization
Security & WAFWeb Application Firewall, managed security scenarios, access rules, Basic Auth, Under Attack ModeSecurity & WAF
Custom PagesBranded error, security, and maintenance pagesCustom Pages
RulesOverride any zone setting based on request conditions (URL, country, headers, etc.)Rules Overview

Common Patterns

One Zone Per Environment

Create separate zones for production, staging, and development. Each environment gets its own caching, security, and optimization settings -- and you can tag each zone accordingly.

ZoneHostnamesSettings
Productionwww.example.com, shop.example.comAggressive caching, WAF enabled, image optimization on
Stagingstaging.example.comShort cache TTL, WAF enabled, debug headers on
Developmentdev.example.comNo caching, WAF off, debug headers on

One Zone for Multiple Hostnames

If several hostnames serve the same type of content with the same requirements, attach them all to one zone. This avoids duplicating configuration.

Moving Hostnames Between Zones

You can move a hostname to a different zone at any time. The hostname immediately inherits the new zone's settings -- no need to reconfigure anything manually.


Zones and Redirects

When you only need to forward one hostname to another instead of serving and optimizing content, use a redirect rather than a zone.

TypePurpose
ZoneFull configuration -- caching, security, optimization, routing, rules
RedirectOnly forwards traffic from a source hostname to another -- no caching, no optimization

Redirects are managed at the organization level. Use one when you only need to forward a hostname (e.g., redirecting example.com to www.example.com). See Redirects for details.