From c11e3bffd698cfb1e19a21097ff4a65cf10e28b0 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 3 Oct 2019 16:00:41 -0600 Subject: Add file-server and reverse-proxy subcommands --- caddyconfig/httpcaddyfile/addresses.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'caddyconfig/httpcaddyfile') diff --git a/caddyconfig/httpcaddyfile/addresses.go b/caddyconfig/httpcaddyfile/addresses.go index 5708783..deb27c2 100644 --- a/caddyconfig/httpcaddyfile/addresses.go +++ b/caddyconfig/httpcaddyfile/addresses.go @@ -161,7 +161,7 @@ func (st *ServerType) listenerAddrsForServerBlockKey(sblock serverBlock, key str } addr = addr.Normalize() - lnPort := defaultPort + lnPort := DefaultPort if addr.Port != "" { // port explicitly defined lnPort = addr.Port @@ -327,6 +327,8 @@ func (a Address) Key() string { } const ( - defaultPort = "2015" + // DefaultPort is the default port to use. + DefaultPort = "2015" + caseSensitivePath = false // TODO: Used? ) -- cgit v1.2.3