-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slice bounds out of range #2706
Comments
Experiencing the same thing
I have tried 0.0.0.0:80, *:80 and :80. All variations give this error. |
Same issue using the docker image. |
From the comment with version 1.0.2 release
|
I found a fix We used *:80 and other versions of this definition. Change it to http://*:80. So put the protocol in front of it and caddy will start with version 1.0.2. This is also in line with the comment attached to the release. Hope this will help you guys too :) |
Oops, would someone like to contribute a patch? I'll be away from the computer for the next ~6 hours. |
Thanks for posting this fix. Was running into the same issue here. # Old naming scheme produces a runtime error on v1.0.2
name.example.com:80 { } # Fix
http://name.example.com:80 { } |
I've added test cases and pushed a fix at a08ab0c - would you please try that and confirm it works for you and then I will tag another release. Thanks |
I confirm that it is now working correctly. Thanks! |
Caddy v1.0.3 has this fix. Thanks for the report! |
1. Which version of Caddy are you using (
caddy -version
)?1.0.2
2. What are you trying to do?
validate the Caddyfile
3. What is your Caddyfile?
OR
4. How did you run Caddy (give the full command and describe the execution environment)?
just try to validate the Caddyfile with: caddy -validate -conf /path/to/your/caddyfile
5. Please paste any relevant HTTP request(s) here.
6. What did you expect to see?
Caddyfile is valid
7. What did you see instead (give full error messages and/or log)?
8. Why is this a bug, and how do you think this should be fixed?
Server doesn't start as expected
9. What are you doing to work around the problem in the meantime?
revert to previous version 1.0.1
The text was updated successfully, but these errors were encountered: