5. How did you run Caddy? (give the full command and describe the execution environment). If multiple servers are used (for example with upstream), describe those as well.
`./caddy run -config Caddyfile
6. Please paste any relevant HTTP request(s) here.
7. What did you expect to see?
The same result as curl http://neverssl.com:80
8. What did you see instead (give full error messages and/or log)?
* Trying 10.200.200.1:80...
* Connected to proxy.history.test (10.200.200.1) port 80 (#0)
> GET http://neverssl.com/ HTTP/1.1
> Host: neverssl.com
> User-Agent: curl/7.81.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://neverssl.com/
< Server: Caddy
< Date: Mon, 21 Mar 2022 15:23:55 GMT
< Content-Length: 0
<
* Closing connection 0
9. How can someone who is starting from scratch reproduce the bug as minimally as possible?
Compile caddy with this plugin, set your DNS to resolve *.test to localhost, make a Caddyfile with the above text, and start it.
1. Is bug reproducible with latest
forwardproxy
build?Yest
2. What are you trying to do?
I set up my proxy and tried to do
curl -x http://proxy.history.test:80 http://neverssl.com:80
, but all I got was aHTTP/1.1 308 Permanent Redirect
/3. What is your entire Caddyfile?
4. How is your client configured?
I just use curl.
5. How did you run Caddy? (give the full command and describe the execution environment). If multiple servers are used (for example with
upstream
), describe those as well.`./caddy run -config Caddyfile
6. Please paste any relevant HTTP request(s) here.
7. What did you expect to see?
The same result as
curl http://neverssl.com:80
8. What did you see instead (give full error messages and/or log)?
9. How can someone who is starting from scratch reproduce the bug as minimally as possible?
Compile caddy with this plugin, set your DNS to resolve
*.test
to localhost, make a Caddyfile with the above text, and start it.