This page is about Caddy 1 and will go away soon because Caddy 2 is now available. Click here for Caddy 2.

User Guide

http.locale
Plugin

Locale detection for caddy

Full documentation

Examples

Cookie / header locale detection
locale en de { detect cookie header } rewrite { ext / to index.{>Detected-Locale}.html index.html } header / Vary "Cookie, Accept-Language"

This example tries read the locale from a cookie and if this fails, uses the Accept-Language header.

Related Links
Documentation

Access the full documentation for this plugin off-site:

Docs
Plugin Help

Get help from the maintainers of the http.locale plugin:

Support
Plugin Website

Visit http.locale's website for more information:

Website
Plugin Author: Philipp BrĂ¼ll
Last Updated: 20 Oct 2017, 8:21 AM
This plugin is independent of the Caddy project and is not endorsed or maintained by Caddy developers. Use at your own risk. Do not file issues for this plugin on Caddy's bug tracker.