validatehostdir

package module
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

README

caddy2-validate-vhost-dir

Utilized by the Caddy2 "On Demand TLS" mechanism to determine whether the host is recognized based on the existence of a directory matching that host.

on_demand_tls {
    ask http://localhost/internal/validate-vhost-dir
}
...
http://localhost {
  route /internal/validate-vhost-dir {

    root * /var/www/vhosts
    file_server
    validate-vhost-dir /var/www/vhosts
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidateVhostDir

type ValidateVhostDir struct {
	VhostsPath string `json:"vhosts_path"`
}

func (ValidateVhostDir) CaddyModule

func (ValidateVhostDir) CaddyModule() caddy.ModuleInfo

func (ValidateVhostDir) ServeHTTP

func (*ValidateVhostDir) UnmarshalCaddyfile added in v0.0.5

func (m *ValidateVhostDir) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL