Hello!!!
- explain what you are trying to do
I’m trying to use caddy web server and reverse proxy behind an apache revers proxy.
Caddy and Gitlab is all using Docker
Gitlab is the container i wants to proxy to
the ressone it is behind an apache revers proxy is becuse I dont own the network but just one server on the network and the sys-admin have another webserver alredy running on apache so for him it was alot easyer to just use that as the revers proxy til my revers server
- show what you have already tried,
My caddy file looks like this
git.exempel.org {
proxy / 172.20.1.10:8080 {
transparent
}
}
and the apache config looks like atm
ServerName git.exemple.org
ProxyRequests Off
RewriteEngine On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyErrorOverride On
ProxyPass / http://172.16.1.20/
ProxyPassReverse / http://172.16.1.20/
<Location />
Order allow,deny
Allow from all
</Location>
- include error messages and log output,
The log only logs this
Activating privacy features... 2018/06/10 21:12:32 [INFO][git.exemple.org] acme: Obtaining bundled SAN certificate
2018/06/10 21:12:33 [INFO][git.exemple.org] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz/
2018/06/10 21:12:33 [INFO][git.exemple.org] acme: Could not find solver for: dns-01
2018/06/10 21:12:33 [INFO][git.exemple.org] acme: Trying to solve HTTP-01
2018/06/10 21:12:33 [WARN] Received request for domain 172.16.1.20 with method GET but the domain did not match any challenge. Please ensure your are passing the HOST header properly.
2018/06/10 21:12:38 [git.exemple.org] failed to get certificate: acme: Error 403 - urn:ietf:params:acme:error:unauthorized - The key authorization file from the server did not match this challenge [] != [TEST]
exit status 1