Hi,
I have a running caddy1 installation that I want to replace with caddy2.
I run my caddy1 with the parameter wildcard, so I only have one cert *.x.y.z.
I try to modify your setup but instead of phpmyadmin I would like to select authentication.
I can start caddy, but I only got empty files. I tried both:
v2.4.0-beta.1.0.20210330214204-e68dbe9cf8cf h1:vvo1zjA0E5CQgkxKlULvdE5VixBhf0YaORfvnLYePKk=
and
v2.4.0-beta.1 h1:Ed/tIaN3p6z8M3pEiXWJL/T8JmCqV62FrSJCHKquW/I=
but still only got empty responses and a similar error message as about:
“dial http:: unknown network http:”
Any ideas, how to fix this, or should I open a new thread?
I moved your comment into a new topic - it was already long, so best to ask this in its own topic.
In particular, your problem if that you included http:// in the map value. When using a placeholder for the value, it should just be a host and port. So remove http:// from your map.
Thanks for the help. I should have seen that my self.
Now it is working. But I have another thing. I need to add and remove some header on some of the sites. I could extend it like I did with auth. But I only need this settings on 1 of the about 20 sites. Is there a better way to do it then have a map with 5 or 6 rows?
I saw this example in Matts post: