0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/httpserver
Matthew Holt be96cc0e65
httpserver: Raise error when adjusted site addresses clash at startup
See discussion on #2015 for how this situation was discovered. For a
Caddyfile like this:

	localhost {
		...
	}
	:2015 {
		...
	}

Running Caddy like this:

	caddy -host localhost

Produces two sites both defined as `localhost:2015` because the flag
changes the default host value to be `localhost`. This should be an
error since the sites are not distinct and it is confusing. It can also
cause issues with TLS handshakes loading the wrong cert, as the linked
discussion shows.
2018-02-15 00:04:31 -07:00
..
condition.go redir: Do not count multiple rules with if statements as duplicates 2017-09-28 11:41:11 -06:00
condition_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
error.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
https.go tls: Restructure and improve certificate management 2018-02-04 00:58:27 -07:00
https_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
logger.go Allow Masking of IP address in Logfile. (#1930) 2017-12-23 10:52:11 +00:00
logger_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
middleware.go httpserver: give each req context a Replacer that preserves custom values (#1937) 2017-11-07 10:10:03 -07:00
middleware_test.go Change CASE_SENSITIVE_PATH default to false 2017-10-08 22:19:35 -06:00
mitm.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
mitm_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
path.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
path_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
plugin.go httpserver: Raise error when adjusted site addresses clash at startup 2018-02-15 00:04:31 -07:00
plugin_test.go httpserver: Raise error when adjusted site addresses clash at startup 2018-02-15 00:04:31 -07:00
recorder.go ResponseBuffer: add missing header writing (#1997) 2018-01-15 18:32:19 -07:00
recorder_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
replacer.go httpserver: give each req context a Replacer that preserves custom values (#1937) 2017-11-07 10:10:03 -07:00
replacer_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
responsewriterwrapper.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
roller.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
server.go httpserver: give each req context a Replacer that preserves custom values (#1937) 2017-11-07 10:10:03 -07:00
server_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
siteconfig.go Implement per-site index (#1906) 2017-10-29 21:13:10 +00:00
tplcontext.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
tplcontext_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
vhosttrie.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
vhosttrie_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00